import { Editable } from "@chakra-ui/react"; import { FC } from "react"; interface InputProps { value?: string; onChange?: (value: string) => void; defaultValue?: string; placeholder?: string; props?: any; type?:string isDisabled?: boolean; } const EditableInput: FC = ({ value, onChange, defaultValue, placeholder, type, isDisabled, ...props }) => { return ( onChange && onChange} w={"100%"} size={"sm"} textAlign="start" defaultValue={defaultValue || ""} > ); }; export default EditableInput;