cec3890c6f
- Add missing --border CSS variable for light and dark mode - Add border color to Tailwind config using hsl(var(--border)) - Fix import paths in sidebar.tsx (@/hooks/ instead of @/components/hooks/) - Fix import path in toaster.tsx (@/hooks/ instead of @/components/hooks/) These fixes ensure npm run dev / npm run build work out of the box. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
36 lines
786 B
TypeScript
36 lines
786 B
TypeScript
"use client"
|
|
|
|
import { useToast } from "@/hooks/use-toast"
|
|
import {
|
|
Toast,
|
|
ToastClose,
|
|
ToastDescription,
|
|
ToastProvider,
|
|
ToastTitle,
|
|
ToastViewport,
|
|
} from "@/components/ui/toast"
|
|
|
|
export function Toaster() {
|
|
const { toasts } = useToast()
|
|
|
|
return (
|
|
<ToastProvider>
|
|
{toasts.map(function ({ id, title, description, action, ...props }) {
|
|
return (
|
|
<Toast key={id} {...props}>
|
|
<div className="grid gap-1">
|
|
{title && <ToastTitle>{title}</ToastTitle>}
|
|
{description && (
|
|
<ToastDescription>{description}</ToastDescription>
|
|
)}
|
|
</div>
|
|
{action}
|
|
<ToastClose />
|
|
</Toast>
|
|
)
|
|
})}
|
|
<ToastViewport />
|
|
</ToastProvider>
|
|
)
|
|
}
|