2023-05-09
When creating a page for a collection, I first want to get the collectionPage
info, then run the collectionData
request. Because not all collectionPage
will have collectionData
.
So collectionData
can share most of the code with PageBody.tsx
but I will need to pass an id
instead of a table
.
- Create a
CollectionHero
function inPageHero
.tsx which calls/api/
toGET
the metadata for a page. - If the
collection
has aMeasurements[].length
then render thecollectionBody
fromPageBody
.tsx