import React from 'react';
import Tree from '../tree';

var MutipleDropdown = function MutipleDropdown(props) {
  var treeData = props.treeData,
      checkedKeys = props.checkedKeys,
      onCheck = props.onCheck,
      onSelect = props.onSelect,
      fieldNames = props.fieldNames,
      columnWidth = props.columnWidth,
      columnStyle = props.columnStyle,
      loadData = props.loadData;
  var endFieldNames = {
    title: fieldNames['label'],
    key: fieldNames['value'],
    children: fieldNames.children
  };
  return /*#__PURE__*/React.createElement(Tree, {
    direction: "horizontal",
    treeData: treeData,
    loadData: loadData,
    checkedKeys: checkedKeys || [],
    fieldNames: endFieldNames,
    onCheck: onCheck,
    onSelect: onSelect,
    columnWidth: columnWidth,
    columnStyle: columnStyle
  });
};

export default MutipleDropdown;