МН
Size: a a a
МН
МН
NR
const maxPageIndex =
count % PAGINATION_LIMIT === 0 ? count / PAGINATION_LIMIT - 1 : Math.trunc(count / PAGINATION_LIMIT);
const pageIndex = offset / PAGINATION_LIMIT;
const canPreviousPage = offset > 0;
const canNextPage = pageIndex < maxPageIndex;
const goNextPage = () => onUpdateOffset({ offset: offset + PAGINATION_LIMIT });
const goPreviousPage = () => onUpdateOffset({ offset: offset - PAGINATION_LIMIT });
const goToPage = newPageIndex => () => onUpdateOffset({ offset: newPageIndex * PAGINATION_LIMIT });
A
NR
В
A
МГ
МГ
МН
T
МН
МГ
МН
МН
МГ
AK
В
МГ
В