MCPcopy
hub / github.com/cita-777/metapi / ToastContextValue

Interface ToastContextValue

src/web/components/Toast.tsx:12–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12interface ToastContextValue {
13 toast: (type: ToastType, message: string) => void;
14 success: (message: string) => void;
15 error: (message: string) => void;
16 info: (message: string) => void;
17}
18
19const ToastContext = createContext<ToastContextValue | null>(null);
20

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected