// Sport Heroes / Hall of Fame + hero profile function HeroesPage() { const { go } = CTSCShell.useNav(); const { data } = CTSCStore.useStore(); const { Avatar } = CTSCShell; const [sport, setSport] = React.useState('All'); const approved = data.heroes.filter(h => h.status === 'Approved'); const sports = ['All', ...Array.from(new Set(approved.map(h => h.sport)))]; const list = approved.filter(h => sport === 'All' || h.sport === sport); return (
Hall of Fame

Sport Heroes of Cape Town

Honouring the athletes who carried the city's colours — inducted and celebrated by their federations. Federation admins can nominate and update profiles.

{sports.map(s => )}
{list.map((h, i) => ( ))}
); } function HeroDetail({ id }) { const { go } = CTSCShell.useNav(); const { data } = CTSCStore.useStore(); const { Avatar } = CTSCShell; const { fedName } = CTSCStore; const h = data.heroes.find(x => x.id === id); if (!h) return ; return (
{h.sport}

{h.name}

{h.achievement}

Biography

{h.bio}

); } window.HeroesPage = HeroesPage; window.HeroDetail = HeroDetail;