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