umami/pages/settings/index.js
2022-10-12 16:29:44 -07:00

19 lines
391 B
JavaScript

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