Files
commerce/pages/account.tsx
lytrankieio123 faabf5228d feat: logout
:%s
2021-09-29 16:58:12 +07:00

17 lines
415 B
TypeScript

import React from 'react'
import { Layout } from 'src/components/common'
import useActiveCustomer from 'src/components/hooks/useActiveCustomer'
import { AccountPage, AccountSignIn } from 'src/components/modules/account'
const Account = () => {
const { customer } = useActiveCustomer()
if (customer) {
return <AccountPage />
}
return <AccountSignIn />
}
Account.Layout = Layout
export default Account