'use strict';

var antd5 = require('antd5');
var cs = require('classnames');
var React = require('react');
var constants = require('../../utils/constants.js');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

var cs__default = /*#__PURE__*/_interopDefault(cs);
var React__default = /*#__PURE__*/_interopDefault(React);

var __defProp = Object.defineProperty;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
  enumerable: true,
  configurable: true,
  writable: true,
  value
}) : obj[key] = value;
var __spreadValues = (a, b) => {
  for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
  if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
    if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
  }
  return a;
};
const Segment = "E_s11wux3h";
const SmallSegment = "E_s1t2an3z";
const MediumSegment = "E_ma64lna";
const ColorSegment = "E_ckld275";
const SegmentControl = props => {
  const {
    size = "middle",
    className
  } = props;
  return /* @__PURE__ */React__default.default.createElement(antd5.Segmented, __spreadValues({
    className: cs__default.default(className, {
      [SmallSegment]: size === "small",
      [MediumSegment]: size === "middle"
    }, Segment, ColorSegment),
    size,
    prefixCls: `${constants.Antd5PrefixCls}-segmented`
  }, props));
};
var SegmentControl$1 = SegmentControl;

module.exports = SegmentControl$1;
