2022-12-27 01:57:59 +01:00
|
|
|
import Settings from 'components/pages/Settings';
|
|
|
|
import TeamDetails from 'components/pages/TeamDetails';
|
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() {
|
2022-12-29 00:43:22 +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 (
|
|
|
|
<Settings>
|
|
|
|
<TeamDetails teamId={id} />
|
|
|
|
</Settings>
|
|
|
|
);
|
|
|
|
}
|