ui/components/Toast/ToastManager.d.ts

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 {};