koval-ui
Version:
React components collection with minimalistic design. Supports theming, layout, and input validation.
25 lines (24 loc) • 548 B
JavaScript
"use client";
import { jsx as c } from "react/jsx-runtime";
import { useCallback as e } from "react";
import n from "classnames";
import a from "./Pagination.module.css.js";
const p = ({ pageNumber: t, onClick: o = () => {
}, isActive: s, className: l }) => {
const r = e(() => {
o(t);
}, [o, t]);
return /* @__PURE__ */ c(
"button",
{
disabled: s,
className: n(a.pageButton, { [a.active]: s }, l),
onClick: r,
children: t
}
);
};
export {
p as PageButton
};
//# sourceMappingURL=PageButton.js.map