import React from 'react';
import { Box, Loader } from '@wix/design-system';
import { observer } from 'mobx-react-lite';
import { InfiniteScrollLoaderBase } from './InfiniteScrollLoaderBase';
import { usePatternsTheme } from '../../themes/PatternsThemeProvider';
export const InfiniteScrollLoader = observer(function Table({ state, targetRef, ...rest }) {
    const { loader } = usePatternsTheme();
    return (React.createElement(InfiniteScrollLoaderBase, { state: state, targetRef: targetRef },
        React.createElement(Box, { align: "center", padding: "large" },
            React.createElement(Loader, { size: loader?.size, ...rest }))));
});
//# sourceMappingURL=InfiniteScrollLoader.js.map