import { useState } from "react";

//#region src/tree/useTreeState.ts
const useTreeState = (activeItemId) => {
	const [itemsInternal, setItemsInternal] = useState([]);
	const [activeItemIndex, setActiveItemIndex] = useState(activeItemId ?? "");
	return {
		itemsInternal,
		setItemsInternal,
		activeItemIndex,
		setActiveItemIndex
	};
};

//#endregion
export { useTreeState };
globalThis.__vuiVersion__ = "4.0.1"
//# sourceMappingURL=useTreeState.js.map