import React, { useState } from "react"; import { useForm } from "react-hook-form"; import DateRangePicker from "../DateRangePicker"; import Input from "../AnimatedInput/Input"; import CustomSelectBox from "../CustomSelectBox"; const FormInput = ({ items }) => { const { register, getValues } = useForm(); const [selectedInput, setSelectedInput] = useState(false); return (
setSelectedInput(true)} />
); }; export default FormInput; FormInput.defaultProps = { items: [ { title: "mahdi", }, { title: "mahdi", }, { title: "mahdi", }, ], };