11 lines
378 B
TypeScript
11 lines
378 B
TypeScript
import { ReactNode } from 'react';
|
|
type ToastType = 'info' | 'success' | 'error' | 'warning';
|
|
interface ToastContextProps {
|
|
showToast: (message: string, type?: ToastType) => void;
|
|
}
|
|
export declare const useToast: () => ToastContextProps;
|
|
export declare const ToastProvider: ({ children }: {
|
|
children: ReactNode;
|
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
export {};
|