import { ExternalLink, Filter, FolderKanban, Plus, Tags } from "lucide-react"; import Link from "next/link"; 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 (
Projects
{projects.length}
Categories
{categories.length}
Published
{projects.filter((project) => project.isPublished).length}
{project.category.name.de}