import * as React from 'react';
import TextMetadataField from './TextMetadataField';
import { isValidValue } from './validateMetadataField';
const IntegerMetadataField = ({
  dataKey,
  dataValue,
  displayName,
  description,
  error,
  onChange,
  onRemove,
  type
}) => /*#__PURE__*/React.createElement(TextMetadataField, {
  dataKey: dataKey,
  dataValue: dataValue,
  description: description,
  displayName: displayName,
  error: error,
  onChange: (key, value) => {
    if (isValidValue(type, value)) {
      onChange(key, value);
    }
  },
  onRemove: onRemove
});
export default IntegerMetadataField;
//# sourceMappingURL=IntegerMetadataField.js.map