mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-16 02:05:04 +01:00
27 lines
544 B
JavaScript
27 lines
544 B
JavaScript
import AppLayout from 'components/layout/AppLayout';
|
|
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>
|
|
<UserSettings userId={id} />
|
|
</AppLayout>
|
|
);
|
|
}
|
|
|
|
export async function getServerSideProps() {
|
|
return {
|
|
props: {
|
|
disabled: !!process.env.CLOUD_MODE,
|
|
},
|
|
};
|
|
}
|