import { GetStaticPropsContext, InferGetStaticPropsType } from 'next' import getAllProducts from '@lib/bigcommerce/api/operations/get-all-products' import { Layout } from '@components/core' import { Grid, Marquee, Hero } from '@components/ui' import { ProductCard } from '@components/product' export async function getStaticProps({ preview }: GetStaticPropsContext) { const { products } = await getAllProducts() return { props: { products }, } } export default function Home({ products, }: InferGetStaticPropsType) { return ( <> (
{p.node.name}
)} /> (
{p.node.name}
)} />
ALL CATEGORIES ACCESSORIES BAGS CLOTHING SHOES ALL DESIGNERS 032c 1017
) } Home.Layout = Layout