import { usePowerSyncStatus } from './deprecated/usePowerSyncStatus.js'; /** * Custom hook that provides access to the current status of PowerSync. * @returns The PowerSync Database status. * @example * import { useStatus } from "@powersync/react"; * * const Component = () => { * const status = useStatus(); * * return
* status.connected ? 'wifi' : 'wifi-off' *
* }; */ export const useStatus = () => usePowerSyncStatus();