const parentInputRef = React.useRef<HTMLInputElement | null>(null); interface input{ parentInputRef?: React.RefObject<HTMLInputElement>, }