@payfit/unity-components
Version:
18 lines (17 loc) • 553 B
JavaScript
import { usePaginationContext as e } from "../PaginationContext.js";
import { forwardRef as t } from "react";
import { jsx as n } from "react/jsx-runtime";
//#region src/components/pagination/parts/PaginationItem.tsx
var r = t(({ children: t, pageNumber: r, pageCount: i, ...a }, o) => {
let { pageCount: s } = e(), c = i ?? s, l = c === -1 ? void 0 : c;
return /* @__PURE__ */ n("li", {
...a,
ref: o,
"aria-setsize": l,
"aria-posinset": r,
children: t
});
});
r.displayName = "PaginationItem";
//#endregion
export { r as PaginationItem };