1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { Button } from 'react-bootstrap';
4 import { useTranslation } from 'react-i18next';
6 const LoadMore = ({ loadMore }) => {
7 const [loading, setLoading] = React.useState(false);
9 const { t } = useTranslation();
11 const handleLoadMore = React.useCallback(async () => {
20 return <div className="d-grid mt-2">
21 <Button disabled={loading} onClick={handleLoadMore} variant="outline-secondary">
22 {t('rounds.loadMore')}
27 LoadMore.propTypes = {
28 loadMore: PropTypes.func,
31 export default LoadMore;