({ ...props }: ToasterProps)
| 10 | import { Toaster as Sonner, toast, type ToasterProps } from "sonner"; |
| 11 | |
| 12 | const Toaster = ({ ...props }: ToasterProps) => { |
| 13 | return ( |
| 14 | <Sonner |
| 15 | theme="system" |
| 16 | className="toaster group" |
| 17 | icons={{ |
| 18 | success: <CircleCheckIcon className="size-4" />, |
| 19 | info: <InfoIcon className="size-4" />, |
| 20 | warning: <TriangleAlertIcon className="size-4" />, |
| 21 | error: <OctagonXIcon className="size-4" />, |
| 22 | loading: <Loader2Icon className="size-4 animate-spin" />, |
| 23 | }} |
| 24 | style={ |
| 25 | { |
| 26 | "--normal-bg": "var(--popover)", |
| 27 | "--normal-text": "var(--popover-foreground)", |
| 28 | "--normal-border": "var(--border)", |
| 29 | "--border-radius": "var(--radius)", |
| 30 | } as React.CSSProperties |
| 31 | } |
| 32 | {...props} |
| 33 | /> |
| 34 | ); |
| 35 | }; |
| 36 | |
| 37 | export { Toaster, toast }; |
nothing calls this directly
no outgoing calls
no test coverage detected