"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TreeItem = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const styles_1 = require("./styles");
const useLogic_1 = require("./useLogic");
const TreeItem = (props) => {
    const { item, renderItem, classname, onAnimationEnd } = (0, useLogic_1.useLogic)(props);
    const { nodeId, level, siblingIndex } = item.meta;
    return ((0, jsx_runtime_1.jsx)(styles_1.Wrapper, { id: nodeId, className: classname, "$level": level, "$siblingIndex": siblingIndex, onAnimationEnd: onAnimationEnd, children: renderItem(item) }));
};
exports.TreeItem = TreeItem;
