import { FormControl, FormControlProps, FormLabel, Input, InputProps, } from '@chakra-ui/react'; import { stopPastePropagation } from 'common/util/stopPastePropagation'; import { ChangeEvent, memo } from 'react'; interface IAIInputProps extends InputProps { label?: string; value?: string; size?: string; onChange?: (e: ChangeEvent) => void; formControlProps?: Omit; } const IAIInput = (props: IAIInputProps) => { const { label = '', isDisabled = false, isInvalid, formControlProps, ...rest } = props; return ( {label !== '' && {label}} ); }; export default memo(IAIInput);