// Helper function to get the anchor element
export const getAnchorElement = (anchorRef) => {
    if (typeof anchorRef === 'string') {
        return document.getElementById(anchorRef);
    }
    return anchorRef?.current || null;
};
//# sourceMappingURL=getAnchorElement.js.map