'use client'; import React from 'react'; import { Card } from '@/ui/Card'; import { Stack } from '@/ui/Stack'; import { Heading } from '@/ui/Heading'; import { Text } from '@/ui/Text'; import { Input } from '@/ui/Input'; import { TextArea } from '@/ui/TextArea'; import { CountryFlagDisplay } from '@/lib/display-objects/CountryFlagDisplay'; interface ProfileDetailsPanelProps { driver: { name: string; country: string; bio?: string | null; }; isEditing?: boolean; onUpdate?: (updates: { bio?: string; country?: string }) => void; } export function ProfileDetailsPanel({ driver, isEditing, onUpdate }: ProfileDetailsPanelProps) { if (isEditing) { return (
Profile Details onUpdate?.({ country: e.target.value })} placeholder="e.g. US, GB, DE" maxLength={2} />