import { createContext } from 'react'; export type ToastVariant = 'success' | 'error' | 'info'; export interface ToastApi { show: (message: string, variant?: ToastVariant) => void; success: (message: string) => void; error: (message: string) => void; info: (message: string) => void; } export const ToastContext = createContext(null);