import React, { useState } from "react" import Select from "react-select" import { SelectInputProps } from "./interfaces" import * as S from "./styles" import Option from "./components/Option" const SelectInput:React.FC = ({ className, label, onChange, placeholder, disabled, options, value, isSearchable, isClearable, }) => { const [valueSelected, setValueSelected] = useState(value) const components = { Option } return ( { label ? {label} : null }