import React from 'react';
import { useIntersectionObserver } from '../../hooks/useIntersectionObserver';
export const VisibilityTrackedCard = ({ itemKey, element, onObserved, }) => {
    const { elementRef } = useIntersectionObserver(onObserved);
    return React.cloneElement(element, {
        key: itemKey,
        ref: elementRef,
    });
};
//# sourceMappingURL=VisibilityTrackedCard.js.map