export interface ComponentPagination {
currentPage: number
itemsPerPage: number
- totalItems?: number
+ totalItems: number
}
+export type ComponentPaginationLight = Omit<ComponentPagination, 'totalItems'>
+
export function hasMoreItems (componentPagination: ComponentPagination) {
// No results
if (componentPagination.totalItems === 0) return false