'use client'
import Link from 'next/link'
import { usePathname } from 'next/navigation'
import { Settings, Sparkles, Palette, User, Database, Info, Check } from 'lucide-react'
import { cn } from '@/lib/utils'
import { useLanguage } from '@/lib/i18n'
interface SettingsSection {
id: string
label: string
icon: React.ReactNode
href: string
}
interface SettingsNavProps {
className?: string
}
export function SettingsNav({ className }: SettingsNavProps) {
const pathname = usePathname()
const { t } = useLanguage()
const sections: SettingsSection[] = [
{
id: 'general',
label: t('generalSettings.title'),
icon: ,
href: '/settings/general'
},
{
id: 'ai',
label: t('aiSettings.title'),
icon: ,
href: '/settings/ai'
},
{
id: 'appearance',
label: t('appearance.title'),
icon: ,
href: '/settings/appearance'
},
{
id: 'profile',
label: t('profile.title'),
icon: ,
href: '/settings/profile'
},
{
id: 'data',
label: t('dataManagement.title'),
icon: ,
href: '/settings/data'
},
{
id: 'about',
label: t('about.title'),
icon: ,
href: '/settings/about'
}
]
const isActive = (href: string) => pathname === href || pathname.startsWith(href + '/')
return (
)
}