mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
26 lines
520 B
JavaScript
26 lines
520 B
JavaScript
import AppLayout from 'components/layout/AppLayout';
|
|
import SettingsLayout from 'components/layout/SettingsLayout';
|
|
import TeamsList from 'components/pages/settings/teams/TeamsList';
|
|
|
|
export default function TeamsPage({ disabled }) {
|
|
if (disabled) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<AppLayout>
|
|
<SettingsLayout>
|
|
<TeamsList />
|
|
</SettingsLayout>
|
|
</AppLayout>
|
|
);
|
|
}
|
|
|
|
export async function getServerSideProps() {
|
|
return {
|
|
props: {
|
|
disabled: !!process.env.CLOUD_MODE,
|
|
},
|
|
};
|
|
}
|