@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
70 lines (69 loc) • 2.73 kB
JavaScript
;
var __webpack_require__ = {};
(()=>{
__webpack_require__.d = (exports1, definition)=>{
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
enumerable: true,
get: definition[key]
});
};
})();
(()=>{
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
__webpack_require__.r = (exports1)=>{
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
value: 'Module'
});
Object.defineProperty(exports1, '__esModule', {
value: true
});
};
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
default: ()=>TableRowsIndicator
});
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
const I18nContext_js_namespaceObject = require("../context/I18nContext.js");
function TableRowsIndicator({ currentPageIndex, pageIndex, pageSize, totalRows }) {
const { t } = (0, I18nContext_js_namespaceObject.useI18n)();
const start = currentPageIndex * pageSize + 1;
const end = Math.min(pageSize * (pageIndex + 1), totalRows);
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("p", {
className: "text-nextadmin-content-default dark:text-dark-nextadmin-content-default text-sm font-light",
children: [
t("list.footer.indicator.showing"),
" ",
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
className: "font-medium",
children: start
}),
" ",
t("list.footer.indicator.to"),
" ",
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
className: "font-medium",
children: end
}),
" ",
t("list.footer.indicator.of"),
" ",
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
className: "font-medium",
children: totalRows
})
]
})
});
}
exports["default"] = __webpack_exports__["default"];
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
"default"
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
Object.defineProperty(exports, '__esModule', {
value: true
});