UNPKG

@safe-global/safe-react-hooks

Version:

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

14 lines (13 loc) 874 B
import { type UseQueryResult } from '@tanstack/react-query'; import { ListOptions } from '@safe-global/api-kit'; import type { ConfigParam, SafeConfig } from '../types/index.js'; import { ListResponse, SafeOperationResponse } from '@safe-global/types-kit'; export type UsePendingSafeOperationsParams = ConfigParam<SafeConfig> & ListOptions; export type UsePendingSafeOperationsReturnType = UseQueryResult<ListResponse<SafeOperationResponse>>; /** * Hook to get all pending Safe Operations for the connected Safe. * @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 the list of pending Safe Operations. */ export declare function usePendingSafeOperations(params?: UsePendingSafeOperationsParams): UsePendingSafeOperationsReturnType;