import React from 'react' import { type Meta, type StoryObj } from '@storybook/react-vite' import { DocsTemplate } from '../../../.storybook' import OutputForDemo from '../../../.storybook/templates/OutputForDemo' import { hasValue } from '../../services/HelperServiceTyped' const HasValueTemplate = (args: { item: unknown }): React.JSX.Element => { const { item } = args return (
null or undefined).
}
infoBullets={[
hasValue is used when you need a boolean returned
when checking if a variable has a value.
,
]}
noArgs
noDemo
/>
>
),
source: {
code: false,
},
},
},
argTypes: {
item: {
control: 'object',
description: 'The value to check',
},
},
} as Meta