MCPcopy Create free account
hub / github.com/Seanium/ChatMap / Toaster

Function Toaster

components/ui/toaster.tsx:6–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { useToast } from "@/components/ui/use-toast"
5
6export function Toaster() {
7 const { toasts } = useToast()
8
9 return (
10 <ToastProvider>
11 {toasts.map(({ id, title, description, action, ...props }) => (
12 <Toast key={id} {...props}>
13 <div className="grid gap-1">
14 {title && <ToastTitle>{title}</ToastTitle>}
15 {description && <ToastDescription>{description}</ToastDescription>}
16 </div>
17 {action}
18 <ToastClose />
19 </Toast>
20 ))}
21 <ToastViewport />
22 </ToastProvider>
23 )
24}

Callers

nothing calls this directly

Calls 1

useToastFunction · 0.90

Tested by

no test coverage detected