@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
17 lines • 539 B
TypeScript
import React, { ReactElement } from "react";
import type { ToastData } from "./types";
type Props = {
children: React.ReactNode;
};
type ToastContextApi = {
dismissToast: (arg0: string) => void;
pushToast: (arg0: ToastData) => void;
};
type ToastContextState = {
toasts: ToastData[];
};
type ToastContextType = ToastContextApi & ToastContextState;
export declare function useToasts(): ToastContextType;
export declare function ToastProvider({ children }: Props): ReactElement;
export {};
//# sourceMappingURL=index.d.ts.map