"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var DragBar = function DragBar(props) {
  var direction = props.direction,
    className = props.className,
    onMouseDown = props.onMouseDown;
  var directionStyle = direction === 'left' ? "spec-grid-dragbar-left-horizontal" : direction === 'right' ? "spec-grid-dragbar-right-horizontal" : direction === 'top' ? "spec-grid-dragbar-up-vertical" : "spec-grid-dragbar-down-vertical";
  var handleMouseDown = function handleMouseDown(e) {
    onMouseDown(e, direction);
  };
  return /*#__PURE__*/_react.default.createElement("div", {
    className: (0, _classnames.default)(directionStyle, className),
    onMouseDown: handleMouseDown
  });
};
var _default = exports.default = DragBar;