UNPKG

@premieroctet/next-admin

Version:

Next-Admin provides a customizable and turnkey admin dashboard for applications built with Next.js and powered by the Prisma ORM. It aims to simplify the development process by providing a turnkey admin system that can be easily integrated into your proje

36 lines (35 loc) 1.32 kB
import { jsx, jsxs } from "react/jsx-runtime"; import { useI18n } from "../context/I18nContext.mjs"; function TableRowsIndicator({ currentPageIndex, pageIndex, pageSize, totalRows }) { const { t } = useI18n(); const start = currentPageIndex * pageSize + 1; const end = Math.min(pageSize * (pageIndex + 1), totalRows); return /*#__PURE__*/ jsx("div", { children: /*#__PURE__*/ jsxs("p", { className: "text-nextadmin-content-default dark:text-dark-nextadmin-content-default text-sm font-light", children: [ t("list.footer.indicator.showing"), " ", /*#__PURE__*/ jsx("span", { className: "font-medium", children: start }), " ", t("list.footer.indicator.to"), " ", /*#__PURE__*/ jsx("span", { className: "font-medium", children: end }), " ", t("list.footer.indicator.of"), " ", /*#__PURE__*/ jsx("span", { className: "font-medium", children: totalRows }) ] }) }); } export { TableRowsIndicator as default };