I need to specify the argument type and return type of the Higher-Order Component with forwardRef in React. Currently, I ended up with the implementation below. It works but