import { useState } from 'react'
import { Link2, Settings } from 'lucide-react'
import { useTranslation } from 'react-i18next'
import {
Card,
CardContent,
CardHeader,
} from '@/components/ui/card'
import { Skeleton } from '@/components/ui/skeleton'
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'
import { TitledCard } from '@/components/ui/titled-card'
import type { UserProfile } from '../types'
import { AccountBindingsTab } from './tabs/account-bindings-tab'
import { NotificationTab } from './tabs/notification-tab'
// ============================================================================
// Profile Settings Card Component
// ============================================================================
interface ProfileSettingsCardProps {
profile: UserProfile | null
loading: boolean
onProfileUpdate: () => void
}
export function ProfileSettingsCard({
profile,
loading,
onProfileUpdate,
}: ProfileSettingsCardProps) {
const { t } = useTranslation()
const [activeTab, setActiveTab] = useState('bindings')
if (loading) {
return (
{Array.from({ length: 3 }).map((_, i) => (
))}
)
}
return (
}
>
{t('Account Bindings')}
{t('Bindings')}
{t('Settings & Preferences')}
{t('Settings')}
)
}