"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const Pane = ({
  horizontal = false,
  primary = false,
  size = 0,
  children = []
}) => {
  const paneSize = size;
  const style = {};
  if (!primary) {
    if (horizontal) {
      style.height = `${paneSize}px`;
    } else {
      style.width = `${paneSize}px`;
    }
  }
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
    className: (0, _classnames.default)('layout-pane', {
      'layout-pane-primary': primary
    })
    /* eslint-disable-next-line react/forbid-dom-props */,
    style: style,
    children: children
  });
};
var _default = exports.default = Pane;