import { ArrowUpRight, CalendarDays } from "lucide-react"; import Link from "next/link"; import { MotionFade } from "@/components/motion-fade"; import { AppCard } from "@/components/ui/app-card"; import { CardContent } from "@/components/ui/card"; import { getLocalizedPath, type AppLocale } from "@/lib/locale"; import { getLocalizedValue, type PortfolioProjectView } from "@/lib/portfolio"; type PortfolioProjectGridProps = { locale: AppLocale; projects: PortfolioProjectView[]; emptyLabel: string; openLabel: string; }; export function PortfolioProjectGrid({ locale, projects, emptyLabel, openLabel, }: PortfolioProjectGridProps) { return (
{projects.map((item, index) => (

{getLocalizedValue(item.category.name, locale)}

{item.projectYear}

{getLocalizedValue(item.title, locale)}

{getLocalizedValue(item.summary, locale)}

{openLabel}

))} {projects.length === 0 ? ( {emptyLabel} ) : null}
); }