import Layout from 'components/layout/Layout'; import Menu from 'components/nav/Nav'; import useRequireLogin from 'hooks/useRequireLogin'; import styles from './SettingsLayout.module.css'; export default function SettingsLayout({ children }) { const { user } = useRequireLogin(); if (!user) { return null; } return (
{children}
); }