import React, { useState } from "react"; import SearchInput from "."; import Button from "../button"; export default { title: "Components/SearchInput", component: SearchInput, argTypes: { onChange: { action: "onChange" }, }, }; const Template = ({ value, onChange, ...args }) => { const [valueBtn, setValue] = useState("test1"); const [searchValue, setSearchValue] = useState(value); const onButtonHandler = () => { setValue("test"); }; return ( <>