import { useEffect, useState } from "react" import * as React from "react" type InputTextProps = { labelTitle?: string; labelStyle?: string; type?: string; dataField?: string; containerStyle?: string; inputStyle?: string; defaultValue?: string; placeholder?: string; autocomplete?: string updateFormValue?: (value: string ) => void; } export function TextInput({labelTitle, labelStyle, type, dataField, containerStyle, inputStyle, defaultValue, placeholder, autocomplete, updateFormValue} : InputTextProps){ return(
{labelTitle ? : " "} updateFormValue&& updateFormValue(e.target.value)}className={`tw-input tw-input-bordered tw-w-full ${inputStyle ? inputStyle : ""}`} />
) }