'use client' import { useState } from 'react' import ProfileSettings from '@/components/settings/ProfileSettings' import { motion, AnimatePresence } from 'framer-motion' import { UserIcon, ChevronDownIcon, } from '@ciphera-net/ui' type ProfileSubTab = 'profile' | 'security' | 'preferences' function SectionHeader({ expanded, active, onToggle, icon: Icon, label, description, }: { expanded: boolean active: boolean onToggle: () => void icon: React.ElementType label: string description?: string }) { return ( {label} {description && ( {description} )} ) } function SubItem({ active, onClick, label, }: { active: boolean onClick: () => void label: string }) { return ( {label} ) } function ExpandableSubItems({ expanded, children }: { expanded: boolean; children: React.ReactNode }) { return ( {expanded && ( {children} )} ) } export default function SettingsPageClient() { const [activeSubTab, setActiveSubTab] = useState('profile') const [expanded, setExpanded] = useState(true) return ( Settings Manage your account settings and preferences. {/* Sidebar Navigation */} setExpanded(!expanded)} icon={UserIcon} label="Profile & Preferences" description="Your profile and sharing defaults" /> setActiveSubTab('profile')} label="Profile" /> setActiveSubTab('security')} label="Security" /> setActiveSubTab('preferences')} label="Preferences" /> {/* Content Area */} ) }
{description}
Manage your account settings and preferences.