Hook to get the sync agent from the TownsSyncProvider.You can use it to interact with the sync agent for more advanced usage.Throws an error if no sync agent is set in the TownsSyncProvider.
Imports
import { useSyncAgent } from '@towns-protocol/react-sdk'