import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["currentLocation", "clickHandle"];
import * as React from 'react';
import "./index.scss";
import arror from "../../assets/icon/position/arror.png";
var NavigationLeft = function navigationLeft(_ref) {
  var currentLocation = _ref.currentLocation,
    clickHandle = _ref.clickHandle,
    otherProps = _objectWithoutPropertiesLoose(_ref, _excluded);
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", _extends({
    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,
    width: "10",
    height: "5",
    alt: "icon"
  }))));
};
export default NavigationLeft;