import type { GetStaticPropsContext } from 'next' // import useCustomer from '@framework/customer/use-customer' import commerce from '@lib/api/commerce' import { Layout } from '@components/common' import { Container, Text } from '@components/ui' // export async function getStaticProps({ // preview, // locale, // locales, // }: GetStaticPropsContext) { // const config = { locale, locales } // const pagesPromise = commerce.getAllPages({ config, preview }) // const siteInfoPromise = commerce.getSiteInfo({ config, preview }) // const { pages } = await pagesPromise // const { categories } = await siteInfoPromise // return { // props: { pages, categories }, // } // } export default function Profile() { // const { data } = useCustomer() return ( My Profile {/* {data && (
Full Name {data.firstName} {data.lastName}
Email {data.email}
)} */}
) } Profile.Layout = Layout