import React from 'react';
import Button from '../Button/Button';
export default function Page(_ref) {
  var href = _ref.href,
    index = _ref.index,
    isActive = _ref.isActive,
    onPageChange = _ref.onPageChange;
  return /*#__PURE__*/React.createElement(React.Fragment, null, isActive ? /*#__PURE__*/React.createElement("span", {
    className: "ds-c-button ds-c-button--ghost ds-c-pagination__current-page",
    "aria-current": "page"
  }, index) : /*#__PURE__*/React.createElement(Button, {
    variation: "ghost",
    href: href,
    onClick: onPageChange,
    "aria-label": "page ".concat(index)
  }, index));
}