umami/pages/settings/teams/[...id].js
2023-01-09 23:59:26 -08:00

21 lines
484 B
JavaScript

import SettingsLayout from 'components/pages/settings/SettingsLayout';
import TeamDetails from 'components/pages/settings/teams/TeamDetails';
import useUser from 'hooks/useUser';
import { useRouter } from 'next/router';
export default function TeamDetailPage() {
const user = useUser();
const router = useRouter();
const { id } = router.query;
if (!user) {
return null;
}
return (
<SettingsLayout>
<TeamDetails teamId={id} />
</SettingsLayout>
);
}