'use client'; import Image from 'next/image'; import type { GetDriverOutputDTO } from '@/lib/types/generated/GetDriverOutputDTO'; import Button from '../ui/Button'; import DriverRatingPill from '@/components/profile/DriverRatingPill'; import CountryFlag from '@/components/ui/CountryFlag'; interface ProfileHeaderProps { driver: GetDriverOutputDTO; rating?: number | null; rank?: number | null; isOwnProfile?: boolean; onEditClick?: () => void; teamName?: string | null; teamTag?: string | null; } export default function ProfileHeader({ driver, rating, rank, isOwnProfile = false, onEditClick, teamName, teamTag, }: ProfileHeaderProps) { return (