"use client"; import { useTranslations } from "next-intl"; import Link from "next/link"; import { FolderOpen, Flame } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { buttonVariants } from "@/components/ui/button"; import { NewCollectionButton } from "@/components/social/new-collection-button"; import { cn } from "@/lib/utils"; type Collection = { id: string; name: string; description: string | null; isPublic: boolean; recipeCount: number; }; type Props = { collections: Collection[]; }; export function CollectionsPageContent({ collections }: Props) { const t = useTranslations("collections"); return (

{t("title")}

{t("subtitle")}

{t("discoverTitle")}
{collections.length === 0 ? (

{t("empty")}

) : (
{collections.map((col) => (

{col.name}

{col.isPublic && {t("public")}}
{col.description &&

{col.description}

}

{col.recipeCount !== 1 ? t("recipeCountPlural", { count: col.recipeCount }) : t("recipeCount", { count: col.recipeCount })}

))}
)}
); }