import { useTranslation } from "@/hooks/useTranslation"; interface LeaderboardHeaderProps { currentScore?: number; avgWordsPerRound?: number; showScoreInfo: boolean; } export const LeaderboardHeader = ({ currentScore, avgWordsPerRound, showScoreInfo }: LeaderboardHeaderProps) => { const t = useTranslation(); return (
{t.leaderboard.yourScore}: {currentScore} {t.leaderboard.roundCount} {currentScore > 0 && avgWordsPerRound !== undefined && ` (${avgWordsPerRound.toFixed(1)} ${t.leaderboard.wordsPerRound})`}
)}