1 export interface ComponentPagination {
7 export type ComponentPaginationLight = Omit<ComponentPagination, 'totalItems'> & { totalItems?: number }
9 export function hasMoreItems (componentPagination: ComponentPagination) {
11 if (componentPagination.totalItems === 0) return false
14 if (!componentPagination.totalItems) return true
16 const maxPage = componentPagination.totalItems / componentPagination.itemsPerPage
17 return maxPage > componentPagination.currentPage