import { PageOptions } from '@graphcommerce/framer-next-pages' import { useMergeCustomerCart } from '@graphcommerce/magento-cart' import { AccountSignInUpForm } from '@graphcommerce/magento-customer-account' import { PageMeta, StoreConfigDocument } from '@graphcommerce/magento-store' import { GetStaticProps, SheetShellHeader, Title } from '@graphcommerce/next-ui' import { Container, NoSsr } from '@material-ui/core' import React from 'react' import SheetShell, { SheetShellProps } from '../../components/AppShell/SheetShell' import apolloClient from '../../lib/apolloClient' type GetPageStaticProps = GetStaticProps function AccountSignInPage() { useMergeCustomerCart() return ( <> Sign in ) } const pageOptions: PageOptions = { overlayGroup: 'account-public', SharedComponent: SheetShell, } AccountSignInPage.pageOptions = pageOptions export default AccountSignInPage export const getStaticProps: GetPageStaticProps = async ({ locale }) => { const client = apolloClient(locale, true) const conf = client.query({ query: StoreConfigDocument }) return { props: { apolloState: await conf.then(() => client.cache.extract()), variant: 'bottom', size: 'max', }, } }