import React from 'react';
const baseClass = 'paginator__page';
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__*/ React.createElement("button", {
        className: classes,
        onClick: ()=>updatePage(page),
        type: "button"
    }, page);
};
export default Page;

//# sourceMappingURL=index.js.map