"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = _default;

var _react = _interopRequireDefault(require("react"));

var _chooseTree = _interopRequireDefault(require("../../select-tree/choose-tree"));

var _context = require("../../context");

require("../../searched-panel/index.css");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _default(props) {
  var title = props.title,
      treeData = props.treeData,
      onSelect = props.onSelect,
      selected = props.selected,
      height = props.height;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "persel-searched-part"
  }, title ? /*#__PURE__*/_react["default"].createElement("div", {
    className: "persel-searched-part__title"
  }, /*#__PURE__*/_react["default"].createElement("span", null, title)) : undefined, /*#__PURE__*/_react["default"].createElement("div", {
    className: "persel-searched-part__body"
  }, /*#__PURE__*/_react["default"].createElement(_context.TreeNodeContext.Provider, {
    value: {}
  }, /*#__PURE__*/_react["default"].createElement(_chooseTree["default"], {
    multiple: true,
    treeData: treeData,
    asyncData: false,
    onSelect: onSelect,
    selected: selected,
    virtual: true,
    height: height
  }))));
}