mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
24 lines
559 B
JavaScript
24 lines
559 B
JavaScript
import AppLayout from 'components/layout/AppLayout';
|
|
import Menu from 'components/nav/Nav';
|
|
import styles from './SettingsLayout.module.css';
|
|
import useConfig from 'hooks/useConfig';
|
|
|
|
export default function SettingsLayout({ children }) {
|
|
const { adminDisabled } = useConfig();
|
|
|
|
if (adminDisabled) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<AppLayout>
|
|
<div className={styles.dashboard}>
|
|
<div className={styles.nav}>
|
|
<Menu />
|
|
</div>
|
|
<div className={styles.content}>{children}</div>
|
|
</div>
|
|
</AppLayout>
|
|
);
|
|
}
|