UNPKG

@smartinvoicexyz/hooks

Version:

Unified source for React hooks used across the Smart Invoice protocol.

12 lines (11 loc) 384 B
import { SupportedChainId } from '@smartinvoicexyz/constants'; export type SubgraphHealth = { hasIndexingErrors: boolean; hasSynced: boolean; }; export type SubgraphHealthReturnType = { health: Record<SupportedChainId, SubgraphHealth> | undefined; isLoading: boolean; error: Error | null; }; export declare const useSubgraphHealth: () => SubgraphHealthReturnType;