UNPKG

@safe-global/safe-react-hooks

Version:

A collection of React Hooks that facilitates the interaction of React apps with Safe Smart Accounts

12 lines (11 loc) 647 B
import { type UseQueryResult } from '@tanstack/react-query'; import type { ConfigParam, SafeConfig } from '../../types/index.js'; export type UseIsDeployedParams = ConfigParam<SafeConfig>; export type UseIsDeployedReturnType = UseQueryResult<boolean>; /** * Hook to get the connected Safe's deployment state. * @param params Parameters to customize the hook behavior. * @param params.config SafeConfig to use instead of the one provided by `SafeProvider`. * @returns Query result object containing a flag whether the connected Safe is deployed. */ export declare function useIsDeployed(params?: UseIsDeployedParams): UseIsDeployedReturnType;