ultisuite-client/components/gmail/settings/mail-settings-section-view.tsx
R3D347HR4Y ad1370ea7e
Some checks are pending
E2E / Playwright e2e (push) Waiting to run
feat: enhance configuration and add new demo layouts
- Introduced turbopack alias for canvas in next.config.mjs.
- Updated package.json scripts for development and branding tasks.
- Added new dependencies for Tiptap extensions.
- Implemented new demo layouts for agenda, contacts, drive, and mail applications.
- Enhanced globals.css for improved theming and splash screen animations.
- Added OAuth callback handling for drive mounts.
- Updated layout components to integrate new demo shells and improve structure.
2026-06-12 19:10:24 +02:00

40 lines
1.4 KiB
TypeScript

"use client"
import {
resolveMailSettingsSection,
type MailSettingsSectionId,
} from "@/lib/mail-settings/settings-nav"
import { DisplaySettingsSection } from "@/components/gmail/settings/sections/display-settings-section"
import { AccountsSettingsSection } from "@/components/gmail/settings/sections/accounts-settings-section"
import { LabelsFoldersSettingsSection } from "@/components/gmail/settings/sections/labels-folders-settings-section"
import { NotificationsSettingsSection } from "@/components/gmail/settings/sections/notifications-settings-section"
import { AutomationSettingsSection } from "@/components/gmail/settings/sections/automation-settings-section"
import { AgendaSettingsSection } from "@/components/gmail/settings/sections/agenda-settings-section"
const SECTIONS: Record<MailSettingsSectionId, React.ComponentType> = {
display: DisplaySettingsSection,
accounts: AccountsSettingsSection,
labels: LabelsFoldersSettingsSection,
notifications: NotificationsSettingsSection,
automation: AutomationSettingsSection,
agenda: AgendaSettingsSection,
}
export function MailSettingsSectionView({
sectionId,
}: {
sectionId: MailSettingsSectionId
}) {
const Section = SECTIONS[sectionId]
return <Section />
}
export function MailSettingsSectionFromSegments({
segments,
}: {
segments?: string[]
}) {
const sectionId = resolveMailSettingsSection(segments)
return <MailSettingsSectionView sectionId={sectionId} />
}