import React from 'react';
import { observer } from 'mobx-react-lite';
import { PageInfiniteScrollLoader } from '../PageInfiniteScrollLoader';
function _TableFoldersInfiniteScroll(props) {
    const { state: { showFoldersSection, showItemsSection, collections }, } = props;
    return (React.createElement(React.Fragment, null,
        showFoldersSection && (React.createElement(PageInfiniteScrollLoader, { state: collections.folders, scrollMoreAlways: true })),
        showItemsSection && (React.createElement(PageInfiniteScrollLoader, { state: collections.items, scrollMoreAlways: true }))));
}
export const TableFoldersInfiniteScroll = observer(_TableFoldersInfiniteScroll);
//# sourceMappingURL=TableFoldersInfiniteScroll.js.map