umami/pages/settings/users/index.js
2023-01-18 15:05:39 -08:00

21 lines
431 B
JavaScript

import AppLayout from 'components/layout/AppLayout';
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 (
<AppLayout>
<UsersList />
</AppLayout>
);
}