import Link from "next/link";
import type { Edition } from "@/lib/content";
import { formatDateRange } from "@/lib/content";
const statusLabel = {
upcoming: "Yaklaşan",
announced: "Duyuruldu",
past: "Geçmiş",
} as const;
export function EditionCard({ e }: { e: Edition }) {
const isPast = e.status === "past";
return (
{statusLabel[e.status]}
{e.city && (
{e.city}
)}
{e.name}
{formatDateRange(e.startDate, e.endDate)}
{e.venue && (
{e.venue}
)}
{e.stats && (
{e.stats.teams != null && }
{e.stats.participants != null && }
{e.stats.volunteers != null && }
)}
Aç →
);
}
function Stat({ v, l }: { v: string | number; l: string }) {
return (
);
}