import { Segmented } from 'antd5';
import cs from 'classnames';
import React__default from 'react';
import { Antd5PrefixCls } from '../../utils/constants.js';

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_4100_0_7_s11wux3h";
const SmallSegment = "E_4100_0_7_s1t2an3z";
const MediumSegment = "E_4100_0_7_ma64lna";
const ColorSegment = "E_4100_0_7_ckld275";
const SegmentControl = props => {
  const {
    size = "middle",
    className
  } = props;
  return /* @__PURE__ */React__default.createElement(Segmented, __spreadValues({
    className: cs(className, {
      [SmallSegment]: size === "small",
      [MediumSegment]: size === "middle"
    }, Segment, ColorSegment),
    size,
    prefixCls: `${Antd5PrefixCls}-segmented`
  }, props));
};
var SegmentControl$1 = SegmentControl;

export { SegmentControl$1 as default };
