import { Button } from '@mui/material';
import CircularProgress from '@mui/material/CircularProgress';
import Image from 'next/image';
const LoadMore = ({ fetchNextPage, isFetchingNextPage, hasNextPage }) => {
return (
)
}
sx={{
backgroundColor: 'primary.main',
height: 50,
width: 150,
color: 'white',
':hover': {
bgcolor: 'primary.main',
color: 'white',
},
}}
>
{isFetchingNextPage && (
)}
{isFetchingNextPage
? 'Loading...'
: hasNextPage
? 'Load More'
: 'Nothing more to load'}
);
};
export default LoadMore;