'use client'; import React from 'react'; import { Card } from '@/ui/Card'; import { Box } from '@/ui/Box'; import { Stack } from '@/ui/Stack'; import { Text } from '@/ui/Text'; import { Heading } from '@/ui/Heading'; import { Icon } from '@/ui/Icon'; import { Calendar } from 'lucide-react'; import type { LeagueScheduleViewData } from '@/lib/view-data/leagues/LeagueScheduleViewData'; import { ScheduleRaceCard } from '@/components/leagues/ScheduleRaceCard'; import { Surface } from '@/ui/Surface'; interface LeagueScheduleTemplateProps { viewData: LeagueScheduleViewData; } export function LeagueScheduleTemplate({ viewData }: LeagueScheduleTemplateProps) { return ( Race Schedule Upcoming and completed races for this season {viewData.races.length === 0 ? ( No Races Scheduled The race schedule will appear here once events are added. ) : ( {viewData.races.map((race) => ( ))} )} ); }