import { ReactNode } from 'react'; import { usePathname } from 'next/navigation'; import SideNav from 'components/layout/SideNav'; import styles from './MenuLayout.module.css'; export function MenuLayout({ items = [], children }: { items: any[]; children: ReactNode }) { const pathname = usePathname(); const cloudMode = !!process.env.cloudMode; const getKey = () => items.find(({ url }) => pathname === url)?.key; return (