// // Copyright 2023 DXOS.org // import '@dxos-theme'; import React from 'react'; import { Main, useSidebars } from './Main'; import { withTheme } from '../../testing'; import { Button } from '../Buttons'; type StoryMainArgs = {}; const NavigationSidebarToggle = () => { const { toggleNavigationSidebar } = useSidebars('StoryMain__SidebarToggle'); return Toggle navigation sidebar; }; const ComplementarySidebarToggle = () => { const { toggleComplementarySidebar } = useSidebars('StoryMain__SidebarToggle'); return Toggle complementary sidebar; }; const DefaultStory = (_args: StoryMainArgs) => { return ( Navigation sidebar content, hi! Main content, hello! Complementary sidebar content, hello! ); }; export default { title: 'ui/react-ui-core/Main', component: Main.Root, render: DefaultStory, decorators: [withTheme], parameters: { chromatic: { disableSnapshot: false } }, }; export const Default = { args: {}, layout: 'fullscreen', };
Navigation sidebar content, hi!
Main content, hello!
Complementary sidebar content, hello!