import { useRouter } from 'next/router' import { PropsWithChildren } from 'react' import { ProjectLayout } from '../ProjectLayout' import { AdvisorsSidebarMenu } from './AdvisorsSidebarMenu' import { withAuth } from '@/hooks/misc/withAuth' export interface AdvisorsLayoutProps { title?: string } const AdvisorsLayout = ({ children }: PropsWithChildren) => { const router = useRouter() const page = router.pathname.split('/')[4] return ( } > {children} ) } export default withAuth(AdvisorsLayout)