import React from 'react';
import { classPrefix } from '.';
var JSONRowBtns = function JSONRowBtns(_ref) {
  var value = _ref.value,
    onChange = _ref.onChange;
  return /*#__PURE__*/React.createElement("div", {
    className: "".concat(classPrefix, "-switch ").concat(value ? "".concat(classPrefix, "-switch-checked-row") : '')
  }, /*#__PURE__*/React.createElement("span", {
    className: value === 'pathSize' ? "".concat(classPrefix, "-switch-checked") : undefined,
    onClick: onChange === null || onChange === void 0 ? void 0 : onChange.bind(undefined, 'pathSize')
  }, "PageSize"), /*#__PURE__*/React.createElement("span", {
    className: value === 'pageNumber' ? "".concat(classPrefix, "-switch-checked") : undefined,
    onClick: onChange === null || onChange === void 0 ? void 0 : onChange.bind(undefined, 'pageNumber')
  }, "PageNumber"));
};
export default JSONRowBtns;