import { Checkbox } from '@/components/ui/checkbox'; import { Label } from '@/components/ui/label'; import { NotificationSettings as NotificationSettingsType } from '../types/settings'; import { PushPreferencesSection } from './PushPreferencesSection'; interface NotificationSettingsProps { notifications: NotificationSettingsType; onChange: (notifications: NotificationSettingsType) => void; } export function NotificationSettings({ notifications, onChange, }: NotificationSettingsProps) { const handleChange = ( field: keyof NotificationSettingsType, value: boolean, ) => { onChange({ ...notifications, [field]: value, }); }; return (

Notifications par email

Recevoir des notifications par email

handleChange('email_notifications', checked === true) } />

Recevoir des notifications push

handleChange('push_notifications', checked === true) } />

Recevoir des notifications dans le navigateur

handleChange('browser_notifications', checked === true) } />

Notifications d'activité

Recevoir un email quand quelqu'un vous suit

handleChange('email_on_follow', checked === true) } />

Recevoir un email quand quelqu'un aime votre contenu

handleChange('email_on_like', checked === true) } />

Recevoir un email quand quelqu'un commente votre contenu

handleChange('email_on_comment', checked === true) } />

Recevoir un email quand vous recevez un message

handleChange('email_on_message', checked === true) } />

Recevoir un email quand quelqu'un vous mentionne

handleChange('email_on_mention', checked === true) } />

Recevoir des emails promotionnels et des actualités

handleChange('email_marketing', checked === true) } />
{/* N1.3: Push preferences from API */}
); }