summaryrefslogtreecommitdiff
path: root/apps/web/src/components/ui/toaster.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/components/ui/toaster.tsx')
-rw-r--r--apps/web/src/components/ui/toaster.tsx31
1 files changed, 0 insertions, 31 deletions
diff --git a/apps/web/src/components/ui/toaster.tsx b/apps/web/src/components/ui/toaster.tsx
deleted file mode 100644
index baf623f0..00000000
--- a/apps/web/src/components/ui/toaster.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-"use client";
-
-import { useToast } from "../../hooks/use-toast";
-import {
- Toast,
- ToastClose,
- ToastDescription,
- ToastProvider,
- ToastTitle,
- ToastViewport,
-} from "./toast";
-
-export function Toaster() {
- const { toasts } = useToast();
-
- return (
- <ToastProvider>
- {toasts.map(({ id, title, description, action, ...props }) => (
- <Toast key={id} {...props}>
- <div className="grid gap-1">
- {title && <ToastTitle>{title}</ToastTitle>}
- {description && <ToastDescription>{description}</ToastDescription>}
- </div>
- {action}
- <ToastClose />
- </Toast>
- ))}
- <ToastViewport />
- </ToastProvider>
- );
-}