import React, { useState } from "react"; import SettingsReactSvgUrl from "PUBLIC_DIR/images/settings.react.svg?url"; import SearchReactSvgUrl from "PUBLIC_DIR/images/search.react.svg?url"; import InputBlock from "."; import Button from "../button"; import IconButton from "../icon-button"; export default { title: "Components/InputBlock", component: InputBlock, argTypes: { iconColor: { control: "color" }, hoverColor: { control: "color" }, onChange: { action: "onChange" }, onBlur: { action: "onBlur" }, onFocus: { action: "onFocus" }, onIconClick: { action: "onIconClick" }, // optionsMultiSelect: { // control: { // type: "multi-select", // options: ["button", "icon"], // }, // }, }, }; const Template = ({ optionsMultiSelect, onChange, ...args }) => { const [value, setValue] = useState(""); const children = []; if (optionsMultiSelect) { optionsMultiSelect.forEach(function (item, i) { switch (item) { case "button": children.push(