import Link from "next/link";
import type { ComponentType } from "react";
import { Avatar } from "@/components/avatar";
import { IconHorn, IconWings } from "@/components/icons";
export type GameLeader = { pseudo: string; avatarUrl: string | null; score: number } | null;
function LeaderCard({
href,
label,
icon: Icon,
leader,
}: {
href: string;
label: string;
icon: ComponentType<{ className?: string }>;
leader: GameLeader;
}) {
return (
{label}
{leader ? (Personne n'a encore joué
)}