mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
19 lines
450 B
JavaScript
19 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>
|
|
);
|
|
}
|