import { ClipboardList } from "lucide-react"; import { Label } from "~/components/ui/label"; import { Button } from "~/components/ui/button"; import { cn } from "~/lib/utils"; import { SportIcon } from "~/components/league/SportIcon"; import { SettingsSection, SettingsStatusPill } from "./SettingsSection"; type SportsSeason = { id: string; name: string; sport: { id: string; name: string; slug: string; type: string; iconUrl: string | null }; }; const BRACKT_SLUG = "brackt"; export function SportsSection({ active, canEditSports, selectedSports, displaySportsSeasons, onSportToggle, onClearAll, }: { active: boolean; canEditSports: boolean; selectedSports: Set; displaySportsSeasons: SportsSeason[]; onSportToggle: (id: string) => void; onClearAll: () => void; }) { return ( {canEditSports ? "Editable" : "Locked"}} className={active ? undefined : "hidden"} >
{canEditSports && selectedSports.size > 0 && ( )}
{displaySportsSeasons.length > 0 ? ( displaySportsSeasons.map((ss) => { const selected = selectedSports.has(ss.id); return ( ); }) ) : (

No sports seasons available.

)}
); }