UNPKG

@funkit/connect

Version:

Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.

21 lines (20 loc) 1.16 kB
export declare const MODAL_BOTTOM_BAR_WRAPPER_ID = "fun-modal-bottom-bar-wrapper"; export declare const MODAL_BOTTOM_BAR_IDS: { readonly checkout: "checkout-modal-bottom-bar"; readonly withdrawal: "withdrawal-modal-bottom-bar"; }; export declare const MODAL_DIVIDER_ID = "fun-modal-divider"; type ModalBottomBarIdType = keyof typeof MODAL_BOTTOM_BAR_IDS; export declare function useBottomSectionRef(modalBottomBarIdType?: ModalBottomBarIdType): HTMLElement | null; export declare const CHECKOUT_MODAL_TITLE_COUNTDOWN_ID = "checkout-modal-title-countdown"; export declare function useTitleCountdownRef(): HTMLElement | null; export declare function useGeneralBottomBarElement(): HTMLElement | null; export declare function useCheckoutBottomBarElement(): HTMLElement | null; export declare function useWithdrawalBottomBarElement(): HTMLElement | null; /** * Hook to observe if a ref's children are empty, with special handling for bottom bar nodes. * @param ref - React ref to the DOM node to observe * @param setHasNoChildren - Setter to update if the node has no children */ export declare function useBottomBarHasNoChildren(): boolean; export {};