2023-01-19 00:05:39 +01:00
|
|
|
import AppLayout from 'components/layout/AppLayout';
|
2023-01-10 08:59:26 +01:00
|
|
|
import UserSettings from 'components/pages/settings/users/UserSettings';
|
2022-12-29 00:43:22 +01:00
|
|
|
import useUser from 'hooks/useUser';
|
2022-12-27 01:57:59 +01:00
|
|
|
import { useRouter } from 'next/router';
|
|
|
|
|
|
|
|
export default function TeamDetailPage() {
|
2023-01-31 06:44:07 +01:00
|
|
|
const { user } = useUser();
|
2022-12-27 01:57:59 +01:00
|
|
|
const router = useRouter();
|
|
|
|
const { id } = router.query;
|
|
|
|
|
2022-12-29 00:43:22 +01:00
|
|
|
if (!user) {
|
2022-12-27 01:57:59 +01:00
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
2023-01-19 00:05:39 +01:00
|
|
|
<AppLayout>
|
2022-12-27 01:57:59 +01:00
|
|
|
<UserSettings userId={id} />
|
2023-01-19 00:05:39 +01:00
|
|
|
</AppLayout>
|
2022-12-27 01:57:59 +01:00
|
|
|
);
|
|
|
|
}
|