import React, { memo } from "react";
import "./style.css";

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

export default memo(TextArea);