import { memo } from "react"; import { Badge } from "~/components/ui/badge"; interface SidebarRecentPicksProps { picks: Array<{ id: string; pickNumber: number; round: number; participant: { name: string; }; sport: { name: string; }; team: { name: string; }; }>; } export const SidebarRecentPicks = memo(function SidebarRecentPicks({ picks }: SidebarRecentPicksProps) { return (
{picks.length === 0 ? (

No picks yet...

) : (
{picks .slice() .reverse() .map((pick) => (
#{pick.pickNumber}

{pick.participant.name}

{pick.sport.name}

{pick.team.name}

R{pick.round}

))}
)}
); });