import { h } from '@stencil/core';
export const VegaPaginationCurrentPageLabel = ({ pageSize, current, total, translationSlimmer, }) => {
  const rangeFrom = total > 0 ? pageSize * (current - 1) + 1 : 0;
  const rangeTo = Math.min(current * pageSize, total);
  return (h("vega-field-label", { label: translationSlimmer.t('Viewing {0}-{1} of {2}', rangeFrom, rangeTo, total) }));
};
