diff --git a/apps/portal/src/components/questions/PaginationLoadMoreButton.tsx b/apps/portal/src/components/questions/PaginationLoadMoreButton.tsx new file mode 100644 index 00000000..0d6a55be --- /dev/null +++ b/apps/portal/src/components/questions/PaginationLoadMoreButton.tsx @@ -0,0 +1,25 @@ +import type { UseInfiniteQueryResult } from 'react-query'; +import { Button } from '@tih/ui'; + +export type PaginationLoadMoreButtonProps = { + query: UseInfiniteQueryResult; +}; + +export default function PaginationLoadMoreButton( + props: PaginationLoadMoreButtonProps, +) { + const { + query: { hasNextPage, isFetchingNextPage, fetchNextPage }, + } = props; + return ( +