import React, { ReactNode } from 'react'; import { Box } from './Box'; import { Heading } from './Heading'; import { Image } from './Image'; import { Text } from './Text'; import { Glow } from './Glow'; interface DashboardHeroProps { driverName: string; avatarUrl: string; country: string; rating: string | number; rank: string | number; totalRaces: string | number; actions?: ReactNode; stats?: ReactNode; className?: string; } /** * DashboardHero * * Redesigned for "Precision Racing Minimal" theme. * Uses subtle accent glows and crisp separators. */ export function DashboardHero({ driverName, avatarUrl, country, rating, rank, totalRaces, actions, stats, className = '', }: DashboardHeroProps) { return ( {/* Subtle Accent Glow */} {/* Driver Identity */} {driverName} Driver Profile / {country} {driverName} Rating {rating} Rank #{rank} Starts {totalRaces} {/* Actions */} {actions && ( {actions} )} {/* Stats Grid */} {stats && ( {stats} )} ); }