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

26 lines
520 B
JavaScript

import AppLayout from 'components/layout/AppLayout';
import SettingsLayout from 'components/layout/SettingsLayout';
import UsersList from 'components/pages/settings/users/UsersList';
export default function UsersPage({ disabled }) {
if (disabled) {
return null;
}
return (
<AppLayout>
<SettingsLayout>
<UsersList />
</SettingsLayout>
</AppLayout>
);
}
export async function getServerSideProps() {
return {
props: {
disabled: !!process.env.CLOUD_MODE,
},
};
}