umami/pages/users/[...id].js
2022-12-28 15:43:22 -08:00

21 lines
439 B
JavaScript

import Settings from 'components/pages/Settings';
import UserSettings from 'components/pages/UserSettings';
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 (
<Settings>
<UserSettings userId={id} />
</Settings>
);
}