ultisuite-client/components/gmail/mail-toaster.tsx
R3D347HR4Y 6ec95262af Add OnlyOffice integration and update project configurations
- Updated .env.example to include configuration for OnlyOffice Document Server.
- Modified the workspace configuration to remove the drive-suite path.
- Adjusted TypeScript environment imports for consistency.
- Enhanced Next.js configuration to disable canvas in Webpack.
- Updated package.json to include new dependencies for OnlyOffice and PDF.js.
- Added global styles for OnlyOffice theme integration in the CSS.
- Created new layout and page components for the Drive feature, including public sharing and editing functionalities.
- Updated metadata handling across various layouts to reflect the new app structure.
2026-06-07 15:49:21 +02:00

25 lines
560 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
/>
)
}