Build a sidebar navigation for an internal console. The sidebar is visible on all three screens (Overview, Reports, Settings), clicking a menu item navigates to that screen, a collapse button folds and unfolds the sidebar, and the menu for the screen you are on is highlighted. Create a Sidebar component and apply it to the three screens. The menu items are ready in NAV_ITEMS in lib/nav.ts. (The body content of the three pages is already complete.) Note: This is a Next.js App Router project. Collapse/expand and current-menu highlighting must work.
This problem adds a sidebar navigation to an internal console built with Next.js App Router. The sidebar must be visible on the Overview, Reports and Settings screens, with a working collapse button and current-screen highlighting. You practice verifying how UI shared across multiple screens is structured.
Every app has UI shared across screens, like sidebars and headers. Code that works fine on a single screen can behave very differently once screens multiply and navigation gets frequent β where the shared UI lives shapes both the user experience and maintenance. This problem covers a multi-screen console with shared navigation, and practices checking behavior across navigation, not just on one screen.