mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
17 lines
406 B
TypeScript
17 lines
406 B
TypeScript
import React from 'react'
|
|
import { Layout } from 'src/components/common'
|
|
import { useActiveCustomer } from 'src/components/hooks/auth'
|
|
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
|