text: import PropTypes from "prop-types";
  
  const IntegerInput = ({
    label,
    description,
    elRef,
    inputName,
    units,
    defaultValue,
  }) => (
    <div className="configform-input">
      <span className="configform-input-label">{label}: </span>
      {description}
      <br />
      <input
        ref={elRef}
        type="number"
        step="1"
        name={inputName}
        defaultValue={defaultValue}
      />
      &nbsp;
      {units}
    </div>
  );
  
  IntegerInput.propTypes = {
    label: PropTypes.string.isRequired,
    description: PropTypes.string.isRequired,
    elRef: PropTypes.oneOfType([
      PropTypes.func,
      PropTypes.shape({
        // eslint-disable-next-line react/forbid-prop-types
        current: PropTypes.any,
      }),
    ]).isRequired,
    inputName: PropTypes.string.isRequired,
    units: PropTypes.string,
    defaultValue: PropTypes.number,
  };
  
  IntegerInput.defaultProps = {
    units: "",
    defaultValue: 0,
  };
  
  export default IntegerInput;
  