'use client'; import { Button } from '@/ui/Button'; import { Card } from '@/ui/Card'; import { Checkbox } from '@/ui/Checkbox'; import { Heading } from '@/ui/Heading'; import { Input } from '@/ui/Input'; import { Stack } from '@/ui/Stack'; import { Select } from '@/ui/Select'; import { TextArea } from '@/ui/TextArea'; import { Toggle } from '@/ui/Toggle'; import React, { useState } from 'react'; import { ProfileSection } from './ProfileSection'; interface ProfileSettingsPanelProps { driver: { id: string; name: string; country: string; bio?: string | null; }; onSave?: (updates: { bio?: string; country?: string }) => void; } export function ProfileSettingsPanel({ driver, onSave }: ProfileSettingsPanelProps) { const [bio, setBio] = useState(driver.bio || ''); const [nationality, setNationality] = useState(driver.country); const [favoriteCarClass, setFavoriteCarClass] = useState('GT3'); const [favoriteSeries, setFavoriteSeries] = useState('Endurance'); const [competitiveLevel, setCompetitiveLevel] = useState('competitive'); const [preferredRegions, setPreferredRegions] = useState(['EU']); const handleSave = () => { onSave?.({ bio, country: nationality }); }; return (