diff options
Diffstat (limited to 'src/pages/my/profile.jsx')
| -rw-r--r-- | src/pages/my/profile.jsx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/pages/my/profile.jsx b/src/pages/my/profile.jsx new file mode 100644 index 00000000..72a1ee3c --- /dev/null +++ b/src/pages/my/profile.jsx @@ -0,0 +1,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> + ) +} |
