import { useTheme } from "next-themes" import { Toaster as Sonner } from "sonner"; import { CircleCheckIcon, InfoIcon, TriangleAlertIcon, OctagonXIcon, Loader2Icon } from "lucide-react" const Toaster = ({ ...props }) => { const { theme = "system" } = useTheme() return ( ), info: ( ), warning: ( ), error: ( ), loading: ( ), }} style={ { "--normal-bg": "var(--popover)", "--normal-text": "var(--popover-foreground)", "--normal-border": "var(--border)", "--border-radius": "var(--radius)", "--toast-close-button-start": "unset", "--toast-close-button-end": "0", "--toast-close-button-transform": "translate(35%, -35%)" } } toastOptions={{ classNames: { toast: "cn-toast", }, }} {...props} /> ); } export { Toaster }