{collection.title}
{collection.description && ({collection.description}
)}Loading…
:// Collection page — collection header + its project grid (paged). Thin view over
// useCollectionProjects (all data logic lives in the hook). Styled with base44 design tokens (shadcn Tailwind classes).
import { useParams } from "react-router-dom";
import { useCollectionProjects } from "@/hooks/useCollectionProjects";
import ProjectGrid from "@/components/ProjectGrid";
export default function CollectionPage() {
const { slug } = useParams();
const { collection, notFound, projects, cursor, loadMore } = useCollectionProjects(slug, { limit: 24 });
if (notFound) return {collection.description} Loading…{collection.title}
{collection.description && (