'use client'; import { Panel } from '@/ui/Panel'; import { Select } from '@/ui/Select'; import { Toggle } from '@/ui/Toggle'; import { Box } from '@/ui/Box'; import { Stack } from '@/ui/Stack'; import { ProfileStatsGroup, ProfileStat } from '@/ui/ProfileHero'; import React from 'react'; interface PreferencesPanelProps { preferences: { favoriteCarClass: string; favoriteSeries: string; competitiveLevel: string; showProfile: boolean; showHistory: boolean; }; isEditing?: boolean; onUpdate?: (updates: Partial) => void; } export function PreferencesPanel({ preferences, isEditing, onUpdate }: PreferencesPanelProps) { if (isEditing) { return ( onUpdate?.({ competitiveLevel: e.target.value })} options={[ { value: 'casual', label: 'Casual' }, { value: 'competitive', label: 'Competitive' }, { value: 'professional', label: 'Professional' }, ]} /> onUpdate?.({ showProfile: checked })} /> onUpdate?.({ showHistory: checked })} /> ); } return ( ); }