@turnkey/react-wallet-kit
Version:
The easiest and most powerful way to integrate Turnkey's Embedded Wallets into your React applications.
21 lines • 658 B
TypeScript
import { ReactNode } from "react";
export type ModalPage = {
key: string;
content: ReactNode;
showTitle?: boolean;
preventBack?: boolean;
};
export type ModalContextType = {
openModal: (page: ModalPage) => void;
pushPage: (page: ModalPage) => void;
popPage: () => void;
closeModal: () => void;
modalStack: ModalPage[];
isMobile: boolean;
screenWidth: number;
};
export declare const ModalContext: import("react").Context<ModalContextType | undefined>;
export declare function ModalProvider({ children }: {
children: ReactNode;
}): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=Provider.d.ts.map