ultisuite-client/components/gmail/mail-toaster.tsx
R3D347HR4Y 9266aa34cd huhu
2026-05-19 22:20:43 +02:00

26 lines
578 B
TypeScript

"use client"
import { Toaster } from "sonner"
import { useTheme } from "next-themes"
import type { CSSProperties } from "react"
export function MailToaster() {
const { resolvedTheme } = useTheme()
return (
<Toaster
position="bottom-right"
offset={{ right: 16, bottom: 16 }}
mobileOffset={{ right: 16, left: 16, bottom: 16 }}
style={
{
["--width"]: "min(420px, calc(100vw - 2.5rem))",
} as CSSProperties
}
theme={resolvedTheme === "dark" ? "dark" : "light"}
richColors
closeButton
/>
)
}