"use client"; import { useTranslations } from 'next-intl'; import { useSettingsStore } from '@/stores/settings-store'; import { SettingsSection, SettingItem, ToggleSwitch, Select } from './settings-section'; import { playNotificationSound, NOTIFICATION_SOUNDS } from '@/lib/notification-sound'; import type { NotificationSoundChoice } from '@/lib/notification-sound'; import { Button } from '@/components/ui/button'; import { Volume2 } from 'lucide-react'; export function NotificationSettings() { const t = useTranslations('settings.notifications'); const { emailNotificationsEnabled, emailNotificationSound, notificationSoundChoice, calendarNotificationsEnabled, calendarNotificationSound, calendarInvitationParsingEnabled, updateSetting, } = useSettingsStore(); const soundOptions = NOTIFICATION_SOUNDS.map((s) => ({ value: s.id, label: t(`sounds.${s.id}`), })); return (