umami/pages/settings/index.js
2022-10-27 16:42:57 -07:00

21 lines
463 B
JavaScript

import React from 'react';
import Layout from 'components/layout/Layout';
import Settings from 'components/pages/Settings';
import useRequireLogin from 'hooks/useRequireLogin';
import useConfig from 'hooks/useConfig';
export default function SettingsPage() {
const { loading } = useRequireLogin();
const { adminDisabled } = useConfig();
if (adminDisabled || loading) {
return null;
}
return (
<Layout>
<Settings />
</Layout>
);
}