import classNames from 'classnames'; type TextControlProps = { className?: string; inputClassName?: string; defaultValue: any; children?: React.ReactNode; onChange?: (value: string) => void; onClick?: () => void; readOnly?: boolean; }; export const TextControl = ({ onClick, onChange, className, defaultValue, children, inputClassName, readOnly, }: TextControlProps) => { return (
onClick && onClick()} onBlur={() => onClick && onClick()} onChange={(e) => onChange && onChange(e.target.value)} readOnly={readOnly} /> {children}
); };