"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useTreeState = void 0;
const react_1 = require("react");
const useTreeState = (activeItemId) => {
    const [itemsInternal, setItemsInternal] = (0, react_1.useState)([]);
    const [activeItemIndex, setActiveItemIndex] = (0, react_1.useState)(activeItemId !== null && activeItemId !== void 0 ? activeItemId : '');
    return { itemsInternal, setItemsInternal, activeItemIndex, setActiveItemIndex };
};
exports.useTreeState = useTreeState;
//# sourceMappingURL=useTreeState.js.map