({ ...props }: ToasterProps)
| 6 | type ToasterProps = React.ComponentProps<typeof Sonner> |
| 7 | |
| 8 | const Toaster = ({ ...props }: ToasterProps) => { |
| 9 | const { theme = "system" } = useTheme() |
| 10 | |
| 11 | return ( |
| 12 | <Sonner |
| 13 | theme={theme as ToasterProps["theme"]} |
| 14 | className="toaster group" |
| 15 | toastOptions={{ |
| 16 | classNames: { |
| 17 | toast: |
| 18 | "group toast group-[.toaster]:bg-white group-[.toaster]:text-neutral-950 group-[.toaster]:border-neutral-200 group-[.toaster]:shadow-lg dark:group-[.toaster]:bg-neutral-950 dark:group-[.toaster]:text-neutral-50 dark:group-[.toaster]:border-neutral-800", |
| 19 | description: "group-[.toast]:text-neutral-500 dark:group-[.toast]:text-neutral-400", |
| 20 | actionButton: |
| 21 | "group-[.toast]:bg-neutral-900 group-[.toast]:text-neutral-50 dark:group-[.toast]:bg-neutral-50 dark:group-[.toast]:text-neutral-900", |
| 22 | cancelButton: |
| 23 | "group-[.toast]:bg-neutral-100 group-[.toast]:text-neutral-500 dark:group-[.toast]:bg-neutral-800 dark:group-[.toast]:text-neutral-400", |
| 24 | }, |
| 25 | }} |
| 26 | {...props} |
| 27 | /> |
| 28 | ) |
| 29 | } |
| 30 | |
| 31 | export { Toaster } |
nothing calls this directly
no outgoing calls
no test coverage detected