mirror of
https://github.com/kremalicious/umami.git
synced 2025-01-27 02:26:18 +01:00
21 lines
411 B
JavaScript
21 lines
411 B
JavaScript
import Settings from 'components/pages/Settings';
|
|
import useConfig from 'hooks/useConfig';
|
|
import useUser from 'hooks/useUser';
|
|
|
|
import UsersList from 'components/pages/UsersList';
|
|
|
|
export default function UsersPage() {
|
|
const user = useUser();
|
|
const { adminDisabled } = useConfig();
|
|
|
|
if (adminDisabled || !user) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<Settings>
|
|
<UsersList />
|
|
</Settings>
|
|
);
|
|
}
|