"use client"; import Link from "next/link"; const STATUS_BADGE: Record = { ACTIVE: "bg-emerald-100 text-emerald-800 dark:bg-emerald-900/40 dark:text-emerald-300", DRAFT: "bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-400", ON_HOLD: "bg-amber-100 text-amber-800 dark:bg-amber-900/40 dark:text-amber-300", COMPLETED: "bg-blue-100 text-blue-800 dark:bg-blue-900/40 dark:text-blue-300", CANCELLED: "bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300", }; interface MobileProjectCardProps { id: string; shortCode: string; name: string; status: string; allocationsCount?: number; } export function MobileProjectCard({ id, shortCode, name, status, allocationsCount }: MobileProjectCardProps) { return (
{shortCode}
{name}
{allocationsCount !== undefined && (
{allocationsCount} allocation{allocationsCount !== 1 ? "s" : ""}
)}
{status.charAt(0) + status.slice(1).toLowerCase().replace("_", " ")} ); }