summaryrefslogtreecommitdiff
path: root/src/pages/my/profile.jsx
blob: 8a91ea179188cd619c98a613cc71a960e1a130c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Divider from '@/core/components/elements/Divider/Divider'
import AppLayout from '@/core/components/layouts/AppLayout'
import useAuth from '@/core/hooks/useAuth'
import CompanyProfile from '@/lib/auth/components/CompanyProfile'
import PersonalProfile from '@/lib/auth/components/PersonalProfile'

export default function Profile() {
  const auth = useAuth()
  return (
    <AppLayout title='Akun Saya'>
      <PersonalProfile />
      <Divider />
      {auth?.parentId && <CompanyProfile />}
    </AppLayout>
  )
}