umami/pages/settings/users/[id]/index.js
2023-03-24 10:55:20 -07:00

30 lines
656 B
JavaScript

import AppLayout from 'components/layout/AppLayout';
import SettingsLayout from 'components/layout/SettingsLayout';
import UserSettings from 'components/pages/settings/users/UserSettings';
import { useRouter } from 'next/router';
export default function TeamDetailPage({ disabled }) {
const router = useRouter();
const { id } = router.query;
if (!id || disabled) {
return null;
}
return (
<AppLayout>
<SettingsLayout>
<UserSettings userId={id} />
</SettingsLayout>
</AppLayout>
);
}
export async function getServerSideProps() {
return {
props: {
disabled: !!process.env.CLOUD_MODE,
},
};
}