MCPcopy
hub / github.com/chronark/highstorm / Toaster

Function Toaster

apps/web/components/ui/toaster.tsx:14–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12} from "@/components/ui/toast";
13
14export function Toaster() {
15 const { toasts } = useToast();
16
17 return (
18 <ToastProvider>
19 {toasts.map(function ({ id, title, description, action, ...props }) {
20 return (
21 <Toast key={id} {...props}>
22 <div className="grid gap-1">
23 {title && <ToastTitle>{title}</ToastTitle>}
24 {description && <ToastDescription>{description}</ToastDescription>}
25 </div>
26 {action}
27 <ToastClose />
28 </Toast>
29 );
30 })}
31 <ToastViewport />
32 </ToastProvider>
33 );
34}

Callers

nothing calls this directly

Calls 1

useToastFunction · 0.90

Tested by

no test coverage detected