umami/pages/settings/teams/[...id].js

21 lines
484 B
JavaScript
Raw Normal View History

2023-01-10 08:59:26 +01:00
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 (
2023-01-10 08:59:26 +01:00
<SettingsLayout>
<TeamDetails teamId={id} />
2023-01-10 08:59:26 +01:00
</SettingsLayout>
);
}