import { useState, ComponentProps } from "react"; import { Meta, StoryObj } from "@storybook/react"; import { InputMultiSelect } from "."; type Props = ComponentProps; export default { component: InputMultiSelect, args: { options: [ { label: "history", value: "history" }, { label: "culture", value: "culture" }, { label: "TODO", value: "TODO" } ] }, decorators: [ (Story, context) => { const [selected, setSelected] = useState(context.args.value || []); return ; } ] } as Meta; export const Default: StoryObj = {}; export const WithSelection: StoryObj = { args: { value: ["history", "TODO"] } };