Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
21 lines
611 B
Plaintext
21 lines
611 B
Plaintext
'use client';
|
|
|
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
import React from 'react';
|
|
const baseClass = 'paginator__page';
|
|
export const Page = ({
|
|
isCurrent,
|
|
isFirstPage = false,
|
|
isLastPage = false,
|
|
page = 1,
|
|
updatePage
|
|
}) => {
|
|
const classes = [baseClass, isCurrent && `${baseClass}--is-current`, isFirstPage && `${baseClass}--is-first-page`, isLastPage && `${baseClass}--is-last-page`].filter(Boolean).join(' ');
|
|
return /*#__PURE__*/_jsx("button", {
|
|
className: classes,
|
|
onClick: () => updatePage(page),
|
|
type: "button",
|
|
children: page
|
|
});
|
|
};
|
|
//# sourceMappingURL=index.js.map |