mirror of
https://github.com/vercel/commerce.git
synced 2025-05-12 20:57:51 +00:00
20 lines
506 B
TypeScript
20 lines
506 B
TypeScript
import { getPage } from 'lib/shopify';
|
|
import PageContent from './page/page-content';
|
|
|
|
const HomePageContent = async () => {
|
|
const page = await getPage('home-page');
|
|
return (
|
|
<div className="mx-auto max-w-7xl py-6 sm:px-6 lg:px-8">
|
|
<div className="flex flex-col space-y-16">
|
|
{page.metaobjects?.map((content) => (
|
|
<div key={content.id}>
|
|
<PageContent block={content} />
|
|
</div>
|
|
))}
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default HomePageContent;
|