import { useCallback } from 'react';
import { useWixPatternsContainer } from '@wix/bex-core/react';
import { createNestedOptimisticActions, } from '../state/NestedTableState/createNestedOptimisticActions';
export function useCreateNestedOptimisticActions() {
    const container = useWixPatternsContainer();
    return useCallback((collection, state, params) => {
        return createNestedOptimisticActions(container, collection, state, params);
    }, []);
}
//# sourceMappingURL=useCreateNestedOptimisticActions.js.map