'use client'
import Link from 'next/link'
import { usePathname } from 'next/navigation'
import { Settings, Sparkles, Palette, User, Database, Info, Key, CreditCard, Plug, Globe } from 'lucide-react'
import { useLanguage } from '@/lib/i18n'
import { motion } from 'motion/react'
interface SettingsNavProps {
className?: string
}
export function SettingsNav({ className }: SettingsNavProps) {
const pathname = usePathname()
const { t } = useLanguage()
const tabs = [
{ id: 'general', label: t('generalSettings.title'), icon: , href: '/settings/general' },
{ id: 'ai', label: t('aiSettings.title'), icon: , href: '/settings/ai' },
{ id: 'billing', label: t('billing.title'), icon: , href: '/settings/billing' },
{ 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: 'published', label: t('settings.publishedTitle') || 'Mes pages', icon: , href: '/settings/published' },
{ id: 'integrations', label: t('integrations.title') || 'Intégrations', icon: , href: '/settings/integrations' },
{ id: 'mcp', label: t('mcpSettings.title'), icon: , href: '/settings/mcp' },
{ id: 'about', label: t('about.title'), icon: , href: '/settings/about' },
]
const isActive = (href: string) => pathname === href || pathname.startsWith(href + '/')
return (
)
}