import { jsx as _jsx } from "react/jsx-runtime";
import { useSet } from '../../../useSet';
import { InfiniteTreeListContext, } from '../InfiniteTreeListContext';
export const InfiniteTreeListContextProvider = ({ children, itemSkeleton, }) => {
    const [disabledIdList, disabledIdListActions] = useSet(new Set());
    const setDisabled = (itemId, disabled) => {
        disabled
            ? disabledIdListActions.add(itemId)
            : disabledIdListActions.remove(itemId);
    };
    return (_jsx(InfiniteTreeListContext.Provider, { value: {
            itemSkeleton,
            disabledIdList,
            setDisabled,
        }, children: children }));
};
