import React from 'react'; import { motion, AnimatePresence } from 'motion/react'; import { SettingsTab } from '../types'; import { SettingsHeader } from './settings/SettingsHeader'; import { GeneralTab } from './settings/GeneralTab'; import { AITab } from './settings/AITab'; import { AppearanceTab } from './settings/AppearanceTab'; import { BillingTab } from './settings/BillingTab'; import { ProfileTab } from './settings/ProfileTab'; interface SettingsViewProps { activeSettingsTab: SettingsTab; setActiveSettingsTab: (tab: SettingsTab) => void; accentColor: string; onAccentColorChange: (color: string) => void; onLogout: () => void; onOpenSidebar?: () => void; } export const SettingsView: React.FC = ({ activeSettingsTab, setActiveSettingsTab, accentColor, onAccentColorChange, onLogout, onOpenSidebar }) => { return (
{activeSettingsTab === 'general' && ( )} {activeSettingsTab === 'ai' && ( )} {activeSettingsTab === 'billing' && ( )} {activeSettingsTab === 'appearance' && ( )} {activeSettingsTab === 'profile' && ( )} {['data', 'mcp', 'about'].includes(activeSettingsTab) && (
?

Section en développement

Le module {activeSettingsTab} sera disponible prochainement.

)}
); };