import type { RichTranslationValues } from 'next-intl'; import type { FC } from 'react'; import Sidebar from '@/components/Containers/Sidebar'; import { useSiteNavigation } from '@/hooks/server'; import type { NavigationKeys } from '@/types'; type WithSidebarProps = { navKeys: Array; context?: Record; }; const WithSidebar: FC = ({ navKeys, context }) => { const { getSideNavigation } = useSiteNavigation(); const mappedSidebarItems = getSideNavigation(navKeys, context).map( ([, { label, items }]) => ({ groupName: label, items: items.map(([, item]) => item), }) ); return ; }; export default WithSidebar;