import React from 'react';
import { observer } from 'mobx-react-lite';
export const InfiniteScrollLoaderBase = observer(function InfiniteScrollLoaderBase({ state, targetRef, children, }) {
    const { fetchedLastPage, showRefreshLoader, showErrorState } = state;
    return (React.createElement(React.Fragment, null,
        React.createElement("div", { ref: (el) => {
                targetRef.current = el;
            } }),
        !fetchedLastPage && !showRefreshLoader && !showErrorState && children));
});
//# sourceMappingURL=InfiniteScrollLoaderBase.js.map