import { Star } from "lucide-react"; import { TeamAvatar } from "~/components/TeamAvatar"; interface RankingsRowProps { teamId: string; teamName: string; participantName: string; ownerName?: string | null; isOwned: boolean; rankLabel?: string | number; points?: number; showPoints: boolean; rowClass: string; } export function RankingsRow({ teamId, teamName, participantName, ownerName, isOwned, rankLabel, points, showPoints, rowClass, }: RankingsRowProps) { return (

{participantName} {isOwned && }

{ownerName && (

{ownerName}

)}
{(rankLabel !== undefined || showPoints) && (
{rankLabel !== undefined && (

Rank

{rankLabel}
)} {showPoints && rankLabel !== undefined && (
)} {showPoints && (

Points

{points ?? 0}
)}
)}
); }