mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-16 02:05:04 +01:00
22 lines
496 B
JavaScript
22 lines
496 B
JavaScript
|
import Settings from 'components/pages/Settings';
|
||
|
import TeamDetails from 'components/pages/TeamDetails';
|
||
|
import useRequireLogin from 'hooks/useRequireLogin';
|
||
|
import { useRouter } from 'next/router';
|
||
|
import React from 'react';
|
||
|
|
||
|
export default function TeamDetailPage() {
|
||
|
const { loading } = useRequireLogin();
|
||
|
const router = useRouter();
|
||
|
const { id } = router.query;
|
||
|
|
||
|
if (loading) {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
return (
|
||
|
<Settings>
|
||
|
<TeamDetails teamId={id} />
|
||
|
</Settings>
|
||
|
);
|
||
|
}
|