import React from 'react'; import { StoryMetaType, StoryType } from '@lg-tools/storybook-utils'; import { Icon } from '@leafygreen-ui/icon'; import LeafyGreenProvider from '@leafygreen-ui/leafygreen-provider'; import SelectContext from '../SelectContext'; import { InternalOption } from './Option'; const meta: StoryMetaType = { title: 'Components/Inputs/Select/Option', component: InternalOption, parameters: { default: null, generate: { storyNames: ['WithIcon', 'WithoutIcon'], combineArgs: { darkMode: [false, true], selected: [false, true], disabled: [false, true], description: [undefined, "I'm a description"], }, args: { children: 'Option', }, decorator: (Instance, ctx) => ( ), }, }, }; export default meta; export const WithIcon: StoryType = () => <>; WithIcon.parameters = { generate: { args: { hasGlyphs: true, glyph: , }, }, }; export const WithoutIcon: StoryType = () => <>; WithoutIcon.parameters = { generate: { args: { hasGlyphs: false, glyph: undefined, }, }, };