import { GetStaticPropsContext, InferGetStaticPropsType } from 'next' import getAllProducts from '@lib/bigcommerce/api/operations/get-all-products' import { Layout } from '@components/core' import { Container } from '@components/ui' import getSiteInfo from '@lib/bigcommerce/api/operations/get-site-info' export async function getStaticProps({ preview }: GetStaticPropsContext) { const { products } = await getAllProducts() const { categories, brands } = await getSiteInfo() return { props: { products, categories, brands }, } } export default function Home({ categories, brands, }: InferGetStaticPropsType) { return (

My Wishlist

  • All Categories
  • {categories.map((cat) => (
  • {cat.name}
  • ))}
Items.
  • Relevance
  • Latest arrivals
  • Trending
  • Price: Low to high
  • Price: High to low
) } Home.Layout = Layout