// 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 not found.; if (!collection) return Loading…; return (

{collection.title}

{collection.description && (

{collection.description}

)}
{projects === null ?

Loading…

: } {cursor && (
)}
); } function Centered({ children }) { return
{children}
; }