"use strict";

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var React = _interopRequireWildcard(require("react"));

var PropTypes = _interopRequireWildcard(require("prop-types"));

var _BackArrow = _interopRequireWildcard(require("./styles/BackArrow"));

var BackArrow = function BackArrow(_ref) {
  var onClick = _ref.onClick,
      render = _ref.render;
  var icon = React.createElement(_BackArrow.BackArrowIcon, {
    type: "wind-arrow-left",
    onClick: onClick
  });
  return React.createElement(_BackArrow.default, null, typeof render === 'function' ? render(icon) : icon);
};

BackArrow.propTypes = {
  onClick: PropTypes.func,
  render: PropTypes.func
};
var _default = BackArrow;
exports.default = _default;