import type { Meta, StoryFn } from '@storybook/react' import filter from 'lodash/filter.js' import React, { useState } from 'react' import { PublicBaseSelectProps } from 'react-select/base' import { Box, FormGroup } from '../../index.js' import StoryWrapper from '../../utils/story-wrapper.jsx' import { Select, SelectAsync } from './index.js' const options = [ { value: 'chocolate', label: 'Chocolate' }, { value: 'strawberry', label: 'Strawberry' }, { value: 'vanilla', label: 'Vanilla' }, ] export const Default: StoryFn> = (props) => { const { isMulti } = props const [value, setValue] = useState() return (