1 export interface ComponentPagination {
7 export function hasMoreItems (componentPagination: ComponentPagination) {
9 if (componentPagination.totalItems === 0) return false
12 if (!componentPagination.totalItems) return true
14 const maxPage = componentPagination.totalItems / componentPagination.itemsPerPage
15 return maxPage > componentPagination.currentPage