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