mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 01:35:39 -04:00
- Delete lib/api/errors.ts and lib/api/auth-guard.ts, inline NextResponse.json() error responses directly in route handlers - Replace non-standard amber CSS variables with primary/primary-foreground - Regenerate shadcn UI components with biome-ignore comments - Add CLAUDE.md for repository guidance - Update dependencies and pnpm lockfile Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
43 lines
1.0 KiB
TypeScript
43 lines
1.0 KiB
TypeScript
"use client";
|
|
|
|
import {
|
|
IconAlertOctagon,
|
|
IconAlertTriangle,
|
|
IconCircleCheck,
|
|
IconInfoCircle,
|
|
IconLoader,
|
|
} from "@tabler/icons-react";
|
|
import { Toaster as Sonner, type ToasterProps } from "sonner";
|
|
|
|
const Toaster = ({ ...props }: ToasterProps) => {
|
|
return (
|
|
<Sonner
|
|
theme="dark"
|
|
className="toaster group"
|
|
icons={{
|
|
success: <IconCircleCheck className="size-4" />,
|
|
info: <IconInfoCircle className="size-4" />,
|
|
warning: <IconAlertTriangle className="size-4" />,
|
|
error: <IconAlertOctagon className="size-4" />,
|
|
loading: <IconLoader className="size-4 animate-spin" />,
|
|
}}
|
|
style={
|
|
{
|
|
"--normal-bg": "var(--popover)",
|
|
"--normal-text": "var(--popover-foreground)",
|
|
"--normal-border": "var(--border)",
|
|
"--border-radius": "var(--radius)",
|
|
} as React.CSSProperties
|
|
}
|
|
toastOptions={{
|
|
classNames: {
|
|
toast: "cn-toast",
|
|
},
|
|
}}
|
|
{...props}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export { Toaster };
|