import { useState } from 'react';
export const useTreeState = (activeItemId) => {
    const [itemsInternal, setItemsInternal] = useState([]);
    const [activeItemIndex, setActiveItemIndex] = useState(activeItemId ?? '');
    return { itemsInternal, setItemsInternal, activeItemIndex, setActiveItemIndex };
};
//# sourceMappingURL=useTreeState.js.map