mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-16 02:05:04 +01:00
21 lines
459 B
JavaScript
21 lines
459 B
JavaScript
import SettingsLayout from 'components/pages/settings/SettingsLayout';
|
|
import useConfig from 'hooks/useConfig';
|
|
import useUser from 'hooks/useUser';
|
|
|
|
import UsersList from 'components/pages/settings/users/UsersList';
|
|
|
|
export default function UsersPage() {
|
|
const user = useUser();
|
|
const { adminDisabled } = useConfig();
|
|
|
|
if (adminDisabled || !user) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<SettingsLayout>
|
|
<UsersList />
|
|
</SettingsLayout>
|
|
);
|
|
}
|