mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
21 lines
423 B
JavaScript
21 lines
423 B
JavaScript
import Settings from 'components/pages/Settings';
|
|
import useConfig from 'hooks/useConfig';
|
|
import useUser from 'hooks/useUser';
|
|
|
|
import WebsitesList from 'components/pages/WebsitesList';
|
|
|
|
export default function WebsitesPage() {
|
|
const user = useUser();
|
|
const { adminDisabled } = useConfig();
|
|
|
|
if (adminDisabled || !user) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<Settings>
|
|
<WebsitesList />
|
|
</Settings>
|
|
);
|
|
}
|