···11import React from 'react';
22import ReactDOM from 'react-dom/client';
33-import './index.css';
43import App from './AppNext.js';
54import dayjs from 'dayjs';
65import utc from 'dayjs/plugin/utc.js';
+53
src/stories/MobileNavbar.stories.tsx
···11+import preview from "../../.storybook/preview.js";
22+import React from 'react';
33+44+import { Container, Box } from '@chakra-ui/react';
55+import { MobileSidebarNav } from "../client/components/MobileMenu";
66+import {Provider} from "../client/components/Provider";
77+import { withRouter, reactRouterParameters } from 'storybook-addon-remix-react-router';
88+99+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
1010+const meta = preview.meta({
1111+ title: 'Examples/MobileSidebar',
1212+ component: MobileSidebarNav,
1313+ parameters: {
1414+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
1515+ layout: 'padded',
1616+ reactRouter: reactRouterParameters({
1717+ location: {
1818+ path: '/'
1919+ },
2020+ routing: {
2121+ path: '/',
2222+ useStoryElement: true
2323+ }
2424+ }),
2525+ },
2626+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
2727+ tags: ['autodocs'],
2828+ // More on argTypes: https://storybook.js.org/docs/api/argtypes
2929+ args: {
3030+ hideFrom: false
3131+ },
3232+ // argTypes: {
3333+ // componentType: {
3434+ // control: { type: 'select' },
3535+ // options: ['source', 'client'],
3636+ // }
3737+ // },
3838+ render: function Render(args) {
3939+ //return (<MobileSidebarNav {...args} />)
4040+ return (<Provider><Container maxWidth="lg"><Box height="500px"><MobileSidebarNav {...args} /></Box></Container></Provider>)
4141+ },
4242+decorators: [
4343+ // (Story) => {
4444+ // return (<Provider><Container maxWidth="lg"><Box><Story/></Box></Container></Provider>)
4545+4646+ // },
4747+ withRouter,
4848+ ]
4949+ // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args
5050+});
5151+5252+export const MobileMenu = meta.story({
5353+});
+33
src/stories/NavbarItems.stories.tsx
···11+import preview from "../../.storybook/preview.js";
22+import React from 'react';
33+44+import { Container, Box } from '@chakra-ui/react';
55+import { SideNavItems, NAV_LINKS } from "../client/components/SideNav";
66+import {Provider} from "../client/components/Provider";
77+import { generateClientApiJson, generateSourceApiJson, generateSourcePlayerJson } from "../core/tests/utils/apiFixtures.js";
88+99+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
1010+const meta = preview.meta({
1111+ title: 'Examples/NavbarItems',
1212+ component: SideNavItems,
1313+ parameters: {
1414+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
1515+ layout: 'padded',
1616+ },
1717+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
1818+ tags: ['autodocs'],
1919+ // More on argTypes: https://storybook.js.org/docs/api/argtypes
2020+ args: {
2121+ items: NAV_LINKS,
2222+ },
2323+ render: function Render(args) {
2424+ return (<SideNavItems {...args} />)
2525+ },
2626+decorators: [
2727+ (Story) => (<Provider><Container maxWidth="lg"><Box display="flex" flexDir="column" gap="6" flex="1"><Story/></Box></Container></Provider>),
2828+ ]
2929+ // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args
3030+});
3131+3232+export const SideNav = meta.story({
3333+});