import type { Meta, StoryFn } from '@storybook/react-vite' import React from 'react' import { LoadResult } from './LoadResult.tsx' const StorybookEntry: Meta = { argTypes: {}, component: LoadResult, parameters: { docs: { page: null } }, title: 'webapp/LoadResult', } const Template: StoryFn = (props) => { return } const Default = Template.bind({}) Default.args = {} const NotFound = Template.bind({}) NotFound.args = { notFound: true } const ApiError = Template.bind({}) ApiError.args = { children:

Shown in case of error

, error: true } const SearchResult = Template.bind({}) SearchResult.args = { children:

Shown when there is a valid result

, searchResult: 'foo' } export { ApiError, Default, NotFound, SearchResult, } export default StorybookEntry