import { ExternalLink, Filter, FolderKanban, Plus, Tags } from "lucide-react"; import Link from "next/link"; import { StatsCard } from "@/components/dashboard/stats-card"; import { MotionFade } from "@/components/motion-fade"; import { AppCard } from "@/components/ui/app-card"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Label } from "@/components/ui/label"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select"; import { getLocalizedPath } from "@/lib/locale"; import { getLocalizedValue, type PortfolioCategoryView, type PortfolioProjectView } from "@/lib/portfolio"; type PortfolioProjectsOverviewProps = { categories: PortfolioCategoryView[]; projects: PortfolioProjectView[]; selectedCategory: string; selectedStatus: "all" | "draft" | "published"; }; const copy = { category: "Kategorie", all: "Alle", status: "Status", draft: "Entwurf", published: "Veroeffentlicht", filter: "Filtern", newProject: "Neues Projekt", newCategory: "Neues Kategorie", openProject: "Ansehen", editProject: "Bearbeiten", untitled: "Unbenanntes Projekt", empty: "Noch keine Projekte vorhanden.", }; export function PortfolioProjectsOverview({ categories, projects, selectedCategory, selectedStatus, }: PortfolioProjectsOverviewProps) { return (
project.isPublished).length)} />
{projects.map((project, index) => (
{getLocalizedValue(project.title, "de") || copy.untitled} {project.isPublished ? copy.published : copy.draft}

{project.category.name.de}

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