import { Checkbox } from '@/components/ui/checkbox'; import { Label } from '@/components/ui/label'; import { PresenceInvisibleToggle } from './PresenceInvisibleToggle'; import { PrivacySettings as PrivacySettingsType } from '../types/settings'; interface PrivacySettingsProps { privacy: PrivacySettingsType; onChange: (privacy: PrivacySettingsType) => void; } export function PrivacySettings({ privacy, onChange }: PrivacySettingsProps) { const handleChange = (field: keyof PrivacySettingsType, value: boolean) => { onChange({ ...privacy, [field]: value, }); }; return (

Permettre aux moteurs de recherche d'indexer votre profil

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

Permettre aux autres utilisateurs de voir votre activité

handleChange('show_activity', checked === true) } />
{/* P2.2: Mode invisible */}
); }