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