import * as __WEBPACK_EXTERNAL_MODULE__index_mjs__ from "../../index.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__useSourceKey_mjs__ from "./useSourceKey.mjs";
const useSourceId = ()=>{
    const { sourceId, association } = (0, __WEBPACK_EXTERNAL_MODULE__index_mjs__.useDataBlockProps)() || {};
    const sourceKey = (0, __WEBPACK_EXTERNAL_MODULE__useSourceKey_mjs__.useSourceKey)(association);
    const sourceRecord = (0, __WEBPACK_EXTERNAL_MODULE__index_mjs__.useDataBlockParentRecord)({
        association
    });
    if (sourceId) return sourceId;
    return null == sourceRecord ? void 0 : sourceRecord[sourceKey];
};
export { useSourceId };
