export var callChildRef = function (componentRef, instance) {
    if (!componentRef) {
        return;
    }
    if (typeof componentRef === 'function') {
        componentRef(instance);
    }
    if (Object.prototype.hasOwnProperty.call(componentRef, 'current')) {
        // @ts-expect-error: will be fixed in #2807
        componentRef.current = instance;
    }
};
//# sourceMappingURL=callChildRef.js.map