import { ReactNode } from 'react'; import { Badge } from './Badge'; import { Box } from './Box'; import { Heading } from './Heading'; import { Image } from './Image'; import { Stack } from './Stack'; interface DashboardHeroProps { driverName: string; avatarUrl: string; country: string; rating: string | number; rank: string | number; totalRaces: string | number; actions?: ReactNode; stats?: ReactNode; } export function DashboardHero({ driverName, avatarUrl, country, rating, rank, totalRaces, actions, stats, }: DashboardHeroProps) { return ( {/* Background Pattern */} {/* Welcome Message */} {driverName} Good morning, {driverName} {country} {rating} #{rank} {totalRaces} races completed {/* Quick Actions */} {actions && ( {actions} )} {/* Quick Stats Row */} {stats && ( {stats} )} ); }