mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 13:41:22 +00:00
27 lines
661 B
TypeScript
27 lines
661 B
TypeScript
import type { GetStaticPropsContext } from 'next'
|
|
import { getConfig } from '@framework/api'
|
|
import getAllPages from '@framework/common/get-all-pages'
|
|
import { Layout } from '@components/common'
|
|
import { Container, Text } from '@components/ui'
|
|
|
|
export async function getStaticProps({
|
|
preview,
|
|
locale,
|
|
}: GetStaticPropsContext) {
|
|
const config = getConfig({ locale })
|
|
const { pages } = await getAllPages({ config, preview })
|
|
return {
|
|
props: { pages },
|
|
}
|
|
}
|
|
|
|
export default function ActivateAccount() {
|
|
return (
|
|
<Container>
|
|
<Text variant="pageHeading">Activate Your Account</Text>
|
|
</Container>
|
|
)
|
|
}
|
|
|
|
ActivateAccount.Layout = Layout
|