diff --git a/catalog-rest-service/src/main/resources/ui/src/components/common/LoadMorePagination/LoadMorePagination.tsx b/catalog-rest-service/src/main/resources/ui/src/components/common/LoadMorePagination/LoadMorePagination.tsx new file mode 100644 index 00000000000..d72b2040037 --- /dev/null +++ b/catalog-rest-service/src/main/resources/ui/src/components/common/LoadMorePagination/LoadMorePagination.tsx @@ -0,0 +1,57 @@ +import { LoadingState } from 'Models'; +import React from 'react'; +import { Button } from '../../buttons/Button/Button'; +import Loader from '../../Loader/Loader'; + +type LoadMorePaginationProps = { + isLoading: boolean; + showLoadingText?: boolean; + status: LoadingState; + buttonText: string; + handleClick: () => void; +}; + +const LoadMorePagination = ({ + isLoading, + status, + buttonText, + showLoadingText, + handleClick, +}: LoadMorePaginationProps) => { + return ( + <> + {isLoading ? ( + + ) : status === 'success' ? ( +