{"size": 516, "ext": "js", "max_stars_repo_path": "src/components/FeeTableAdd/SInput.js", "max_stars_repo_name": "duc110789/vnpay", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/FeeTableAdd/SInput.js", "max_issues_repo_name": "duc110789/vnpay", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/FeeTableAdd/SInput.js", "max_forks_repo_name": "duc110789/vnpay", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.1111111111, "max_line_length": 49, "alphanum_fraction": 0.5852713178}
import React, { Component } from 'react';
import Input from 'react-validation/build/input';
import PropTypes from 'prop-types';

export default class index extends Component {
  render() {
    const { addRef, name } = this.props;
    return (
      <Input
        ref={(ref) => {
          if (addRef) { addRef(name, ref); }
        }}
        {...this.props}
      />
    );
  }
}
index.propTypes = {
  addRef: PropTypes.object,
  name: PropTypes.object,
};

index.defaultProps = {
  addRef: null,
  name: null,
};
