"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _insertionView = _interopRequireDefault(require("./insertionView"));
var _detectBorder = _interopRequireDefault(require("./detectBorder"));
var _operation = _interopRequireDefault(require("./operation"));
var _mobxReact = require("mobx-react");
var _shell = require("../../..//shell");
var _default = exports["default"] = (0, _mobxReact.observer)(function LocationTools() {
  var detection = _shell.observableProject.designer.detection;
  var selectedNodeId = _shell.observableProject.documentModel.selectedNodeId;
  var hoveredNodeId = _shell.observableProject.documentModel.hoveredNodeId;
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_insertionView["default"], null), /*#__PURE__*/_react["default"].createElement(_detectBorder["default"], {
    type: "dashed",
    position: detection.hoveredNodePosition,
    show: !!hoveredNodeId && hoveredNodeId !== selectedNodeId
  }), /*#__PURE__*/_react["default"].createElement(_detectBorder["default"], {
    type: "solid",
    position: detection.selectedNodePosition,
    show: !!selectedNodeId
  }), /*#__PURE__*/_react["default"].createElement(_operation["default"], null));
});