import { playgroundParameters } from "@charcuterie/storybook-config/story-parameters" import type { Meta, StoryObj } from "@storybook/react" import type { ReactNode } from "react" import { controlSizeArgType, placementArgType, } from "../argTypes.storyHelpers.ts" import { Button } from "../Button/Button.tsx" import { ContainerBoard, StoryCell, StoryGrid, } from "../board.storyHelpers.tsx" import { Header } from "../Header/Header.tsx" import { MenuIcon } from "../icons.storyHelpers.tsx" import { Main } from "../Main/Main.tsx" import { RouterLinkProvider } from "../RouterLink/RouterLinkProvider.tsx" import type { RouterLinkProps } from "../RouterLink/routerLink.ts" import { Shell } from "../Shell/Shell.tsx" import { PageContent } from "../shell.storyHelpers.tsx" import type { NavBarItem } from "./NavBar.tsx" import { NavBar } from "./NavBar.tsx" /** * A stand-in for react-router's ``, and it does the one thing * the plain `SoftRouterLink` in the other link boards does not: * `preventDefault()`. * * That is not a test convenience, it is what a router does — it * intercepts the plain left click and pushes history instead of * letting the browser leave the page. Without it these boards * genuinely navigate: the first run of `NavBar.test.tsx` clicked * "Phases" and took the whole vitest iframe to `/phases`, which is * the most direct proof available that these rows are real anchors * and not ` } heading="Docket" > } menuLabel="Main menu" />
) export const InAppShell: Story = { parameters: { layout: "fullscreen" }, render: () => , }