umami/pages/websites/index.js
2023-01-04 21:20:24 -08:00

20 lines
450 B
JavaScript

import Settings from 'components/pages/Settings';
import useConfig from 'hooks/useConfig';
import useRequireLogin from 'hooks/useRequireLogin';
import WebsitesList from 'components/pages/WebsitesList';
export default function WebsitesPage() {
const { user } = useRequireLogin();
const { adminDisabled } = useConfig();
if (adminDisabled || !user) {
return null;
}
return (
<Settings>
<WebsitesList />
</Settings>
);
}