"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
var React = _interopRequireWildcard(require("react"));
require("./index.scss");
var _arror = _interopRequireDefault(require("../../assets/icon/position/arror.png"));
var _excluded = ["currentLocation", "clickHandle"];
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
var NavigationLeft = function navigationLeft(_ref) {
  var currentLocation = _ref.currentLocation,
    clickHandle = _ref.clickHandle,
    otherProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
    className: "location"
  }, otherProps, {
    onClick: function onClick() {
      return clickHandle();
    }
  }), /*#__PURE__*/React.createElement("div", {
    className: "location-address"
  }, currentLocation.address), /*#__PURE__*/React.createElement("div", {
    className: "location-icon"
  }, /*#__PURE__*/React.createElement("img", {
    src: _arror["default"],
    width: "10",
    height: "5",
    alt: "icon"
  }))));
};
var _default = exports["default"] = NavigationLeft;