import React from 'react';
import "./style.css";

function Input(_ref) {
  var type = _ref.type,
      label = _ref.label,
      name = _ref.name,
      placeholder = _ref.placeholder,
      onChange = _ref.onChange,
      value = _ref.value,
      className = _ref.className;
  return /*#__PURE__*/React.createElement("div", {
    className: "form_control"
  }, label && /*#__PURE__*/React.createElement("label", {
    htmlFor: name
  }, label), /*#__PURE__*/React.createElement("input", {
    className: className,
    type: type,
    name: name,
    id: name,
    placeholder: placeholder,
    onChange: onChange,
    value: value
  }));
}

export default Input;