import { useLocation } from '@tanstack/react-router' import { PropsWithChildren } from 'react' import { ProjectLayout } from '../ProjectLayout' import { useGenerateAdvisorsMenu } from './AdvisorsMenu.utils' import { AdvisorsSidebarMenu } from './AdvisorsSidebarMenu' import { ProductMenuShortcuts } from '@/components/ui/ProductMenu/ProductMenuShortcuts' import { withAuth } from '@/hooks/misc/withAuth' export interface AdvisorsLayoutProps { title?: string } const AdvisorsLayoutContent = ({ children }: PropsWithChildren) => { const pathname = useLocation({ select: (location) => location.pathname }) const page = pathname.split('/')[4] const menu = useGenerateAdvisorsMenu() return ( } > {children} ) } export const AdvisorsLayout = withAuth(AdvisorsLayoutContent)