// // Copyright 2026 DXOS.org // import { type Meta, type StoryObj } from '@storybook/react-vite'; import React, { useState } from 'react'; import { Button } from '../components/Button/Button.tsx'; import * as Toolbar from '../components/Toolbar/Toolbar.tsx'; import { withLayout, withTheme } from '../testing/index.ts'; import * as Match from './Match.tsx'; import * as Show from './Show.tsx'; type Task = { title: string }; const ShowStory = () => { const [task, setTask] = useState(); return (
Nothing selected.

}> {(task) =>

Selected: {task.title}

}
); }; const MatchStory = () => { const [view, setView] = useState<'list' | 'grid' | 'other'>('list'); return (
No view.

}>
  • Item 1
  • Item 2
Item 1
Item 2
); }; // // Meta // const meta: Meta = { title: 'ui/react-ui-core/components/Show', decorators: [withTheme(), withLayout()], }; export default meta; type Story = StoryObj; export const Default: Story = { render: ShowStory }; export const MatchCase: Story = { render: MatchStory };