2020-10-13 10:04:26 -03:00
|
|
|
import { GetStaticPropsContext, InferGetStaticPropsType } from 'next'
|
2020-10-15 18:55:39 -05:00
|
|
|
import getAllPages from '@lib/bigcommerce/api/operations/get-all-pages'
|
2020-10-13 10:04:26 -03:00
|
|
|
import { Layout } from '@components/core'
|
|
|
|
import { Container } from '@components/ui'
|
|
|
|
|
|
|
|
export async function getStaticProps({ preview }: GetStaticPropsContext) {
|
2020-10-15 18:55:39 -05:00
|
|
|
const { pages } = await getAllPages()
|
2020-10-13 10:04:26 -03:00
|
|
|
return {
|
2020-10-15 18:55:39 -05:00
|
|
|
props: { pages },
|
2020-10-13 10:04:26 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default function Home({}: InferGetStaticPropsType<
|
|
|
|
typeof getStaticProps
|
|
|
|
>) {
|
|
|
|
return (
|
|
|
|
<Container>
|
2020-10-15 16:00:11 -03:00
|
|
|
<h2 className="pt-1 pb-4 text-2xl leading-7 font-bold text-base tracking-wide">
|
2020-10-13 10:04:26 -03:00
|
|
|
My Cart
|
|
|
|
</h2>
|
|
|
|
</Container>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
Home.Layout = Layout
|