import { useParams } from 'common' import { useRouter } from 'next/router' import { PropsWithChildren } from 'react' import AppLayout from '../AppLayout/AppLayout' import AccountSettingsMenu from './AccountSettingsMenu' import OrganizationSettingsMenu from './OrganizationSettingsMenu' const SettingsLayout = ({ children }: PropsWithChildren<{}>) => { const router = useRouter() const { ref, slug } = useParams() return (
{router.pathname !== '/projects' && (
{slug === undefined && ref === undefined ? ( ) : ( )}
)}
{children}
) } export default SettingsLayout