blob: 72a1ee3cf688aebee24a715c432f450cdadbb52d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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 IsAuth from '@/lib/auth/components/IsAuth'
import PersonalProfile from '@/lib/auth/components/PersonalProfile'
export default function Profile() {
const auth = useAuth()
return (
<IsAuth>
<AppLayout title='Akun Saya'>
<PersonalProfile />
<Divider />
{auth?.parentId && <CompanyProfile />}
</AppLayout>
</IsAuth>
)
}
|