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

21 lines
463 B
JavaScript
Raw Normal View History

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