omnipay-savings-sdk
Version:
Omnipay Savings SDK
16 lines (15 loc) • 439 B
TypeScript
import React from 'react';
type ToastType = 'success' | 'error' | 'info';
type ToastOptions = {
type?: ToastType;
message: string;
duration?: number;
};
type ToastContextType = {
showToast: (options: ToastOptions) => void;
};
export declare const useToast: () => ToastContextType;
export declare const ToastProvider: ({ children }: {
children: React.ReactNode;
}) => import("react/jsx-runtime").JSX.Element;
export {};