import { Link } from '@tanstack/react-router' import type { StudentClass } from '@gruperly/shared' import { CalendarX2, Check } from 'lucide-react' import { dateParts, formatLongDate, formatRelativeDay, formatTime } from './format' type NextClassCardProps = { item: StudentClass; timeZone: string } /* "Próxima clase": the dark brand card is the one strong surface of the home. White on brand-night scores 15:1 in both themes. */ export function NextClassCard({ item, timeZone }: NextClassCardProps) { const { day, month } = dateParts(item.startsAt, timeZone) return (

Próxima clase · {formatRelativeDay(item.startsAt, timeZone)}

{item.groupName}

{formatLongDate(item.startsAt, timeZone)} · {formatTime(item.startsAt, timeZone)}

{item.notice ? (

) : (
) }