"use client"; /** * CollectionViews — grid-only renderer for collection lists. * * `hrefFor(c)` chooses where each card links: the owner page sends users * to /u/me/collections/; the public profile sends them to /c/. * The carousel "scroll view" is reached by clicking through to the * collection detail page. */ import type { Collection } from "@/lib/social"; import { CollectionGridCard } from "./collection-grid-card"; export function CollectionViews({ collections, hrefFor, emptyMessage, }: { collections: Collection[]; hrefFor: (c: Collection) => string; emptyMessage?: string; }) { if (collections.length === 0) { return (

{emptyMessage ?? "No collections yet."}

); } return (
{collections.map((c) => ( ))}
); }