import { type ComponentProps, type ReactNode } from 'react'; import { type SideNavMode } from './shell.tsx'; /** * Unstyled Carbon UI Shell side nav, the behaviour of the styled SideNav without a single class. * `Root` holds the state (renders only its children): `expanded` (controlled; inside a * `Shell.Root`, the shell's, which the `Header.MenuButton` toggles), and how it lays out — * default (over the page below Carbon's `lg`, 1056px, beside it from `lg`), `rail` (a strip that * expands on hover / focus), `fixed` (always beside the page) or `collapsible` (closed at every * width until opened over the page). * - `Nav`: the `