"use strict";

exports.__esModule = true;
exports["default"] = void 0;

var _react = _interopRequireDefault(require("react"));

require("./style.css");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

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["default"].createElement("div", {
    className: "form_control"
  }, label && /*#__PURE__*/_react["default"].createElement("label", {
    htmlFor: name
  }, label), /*#__PURE__*/_react["default"].createElement("input", {
    className: className,
    type: type,
    name: name,
    id: name,
    placeholder: placeholder,
    onChange: onChange,
    value: value
  }));
}

var _default = Input;
exports["default"] = _default;
module.exports = exports.default;