"use client"; import Link from "next/link"; import { Flame, Clock, FolderOpen, ChefHat } from "lucide-react"; import { useTranslations } from "next-intl"; import { CollectionStarButton } from "@/components/collections/collection-star-button"; import type { CollectionResult } from "@/app/(app)/collections/explore/page"; function CollectionCard({ collection }: { collection: CollectionResult }) { const t = useTranslations("collections"); return (

{collection.name}

{collection.description && (

{collection.description}

)}
{collection.recipeCount !== 1 ? t("recipeCountPlural", { count: collection.recipeCount }) : t("recipeCount", { count: collection.recipeCount })} {collection.authorName && ( {collection.authorName} )}
); } function HorizontalScroll({ children }: { children: React.ReactNode }) { return
{children}
; } type Props = { trending: CollectionResult[]; recent: CollectionResult[]; }; export function ExploreCollectionsContent({ trending, recent }: Props) { const t = useTranslations("collections"); return (

{t("discoverTitle")}

{t("discoverSubtitle")}

{t("myCollectionsLink")}

{t("trendingThisWeek")}

{trending.length === 0 ? (

{t("noTrending")}

) : ( {trending.map((c) => (
))}
)}

{t("recentlyAdded")}

{recent.length === 0 ? (

{t("noRecent")}

) : (
{recent.map((c) => )}
)}
); }