import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
import { useRef } from "react";
import { useEndReached } from "./useEndReached";
export const EndReachedBox = (props)=>{
    const sentinelRef = useRef(null);
    const { onEndReached } = props;
    useEndReached(sentinelRef, ()=>{
        onEndReached?.();
    });
    return /*#__PURE__*/ _jsxs(_Fragment, {
        children: [
            props.children,
            /*#__PURE__*/ _jsx("div", {
                ref: sentinelRef,
                className: "orderly-relative orderly-invisible orderly-h-[1px] orderly-bg-red-400"
            })
        ]
    });
};

//# sourceMappingURL=endReachedBox.js.map