'use client'; import { League } from '../../domain/entities/League'; import Card from '../ui/Card'; interface LeagueCardProps { league: League; onClick?: () => void; } export default function LeagueCard({ league, onClick }: LeagueCardProps) { return (

{league.name}

{new Date(league.createdAt).toLocaleDateString()}

{league.description}

Owner ID: {league.ownerId.slice(0, 8)}...
{league.settings.pointsSystem.toUpperCase()}
); }