"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 { EmptyState } from "@/components/shared/empty-state"; 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("subtitle")}
{col.description}
}{col.recipeCount !== 1 ? t("recipeCountPlural", { count: col.recipeCount }) : t("recipeCount", { count: col.recipeCount })}
))}