"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MultipleTreeList = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const styles_1 = require("./styles");
const TreeItem_1 = require("./TreeItem");
const useLogic_1 = require("./useLogic");
const INITIAL_LEVEL = 0;
const MultipleTreeList = ({ data, value, className, expandedLevel = 10, disabledItems, ...props }) => {
    const { formattedDisabledItems } = (0, useLogic_1.useLogic)({ disabledItems });
    return ((0, jsx_runtime_1.jsx)(styles_1.List, { className: className, children: data.map((item) => ((0, jsx_runtime_1.jsx)(TreeItem_1.TreeItem, { item: item, value: value, level: INITIAL_LEVEL, expandedLevel: expandedLevel, disabledItems: formattedDisabledItems, ...props }, item.id))) }));
};
exports.MultipleTreeList = MultipleTreeList;
