import { useTheme } from "../../components/ThemeProvider" import { Toaster as Sonner } from "sonner" type ToasterProps = React.ComponentProps const Toaster = ({ ...props }: ToasterProps) => { const { theme = "system" } = useTheme() // Define background and foreground colors based on theme const bgColor = theme === 'dark' ? '#1a1b1e' : '#ffffff'; const textColor = theme === 'dark' ? '#ffffff' : '#000000'; const borderColor = theme === 'dark' ? 'rgba(255,255,255,0.1)' : 'rgba(0,0,0,0.1)'; return (
) } export { Toaster }