"use client" import { Dialog, DialogContent, DialogHeader, DialogTitle, } from "@/components/ui/dialog" import { cn } from "@/lib/utils" import { MAIL_BACKGROUND_PRESETS, normalizeMailBackgroundId, } from "@/lib/mail-settings/constants" import type { MailBackgroundId } from "@/lib/mail-settings/types" import { useMailSettingsStore } from "@/lib/stores/mail-settings-store" export function ThemeSettingsDialog() { const open = useMailSettingsStore((s) => s.themeDialogOpen) const setOpen = useMailSettingsStore((s) => s.setThemeDialogOpen) const backgroundId = useMailSettingsStore((s) => s.backgroundId) const setBackgroundId = useMailSettingsStore((s) => s.setBackgroundId) const activeBackgroundId = normalizeMailBackgroundId(backgroundId) return ( Arrière-plan
{MAIL_BACKGROUND_PRESETS.map((preset) => ( ))}
) }