text: import React from "react";
  import lodash from "lodash";
  import "./_date-input.scss";
  
  export default function InputWrapper(props) {
    const { control, component, error, ...other } = props;
    const Component = component;
  
    /*var invalid = control ? lodash.get(control.errorsRef.current, props.name) : undefined;
    invalid = invalid
      ? invalid
      : error && Array.isArray(error)
      ? error.find((e) => e.name === props.name)
      : undefined;
  
      invalid={invalid}
      invalidText={invalid && invalid.message}*/
  
    return <Component {...other} />;
  }
  