import * as React from 'react';
import { BlockIdContext } from "../context/blockIdContext/index.js";
import { usePCEditorBlockRegister } from "./usePCEditorBlockRegister.js";
export function usePCEditorChildrenItemWrap(index = 0) {
    const parentBlockId = React.useContext(BlockIdContext);
    const path = React.useMemo(() => [...parentBlockId, index], [parentBlockId, index]);
    const blockRef = usePCEditorBlockRegister(path);
    return { blockRef, path };
}
//# sourceMappingURL=usePCEditorChildrenItemWrap.js.map
