'use client'; import { RatingBadge } from '@/components/drivers/RatingBadge'; import { Button } from '@/ui/Button'; import { Heading } from '@/ui/Heading'; import { Image } from '@/ui/Image'; import { Stack } from '@/ui/Stack'; import { Text } from '@/ui/Text'; import { Check, Globe, Trophy, UserPlus } from 'lucide-react'; import { SafetyRatingBadge } from './SafetyRatingBadge'; interface DriverProfileHeaderProps { name: string; avatarUrl?: string | null; nationality: string; rating: number; ratingLabel: string; safetyRating?: number; safetyRatingLabel: string; globalRankLabel?: string; bio?: string | null; friendRequestSent: boolean; onAddFriend: () => void; } export function DriverProfileHeader({ name, avatarUrl, nationality, rating, ratingLabel, safetyRating = 92, safetyRatingLabel, globalRankLabel, bio, friendRequestSent, onAddFriend, }: DriverProfileHeaderProps) { const defaultAvatar = 'https://cdn.gridpilot.com/avatars/default.png'; return ( {/* Background Accents */} {/* Avatar */} {name} {/* Info */} {name} {globalRankLabel && ( {globalRankLabel} )} {nationality} {bio && ( {bio} )} ); }