'use strict';

var _switch = require('@base-ui/react/switch');
var classnames = require('classnames');
var React = require('react');

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

var classnames__default = /*#__PURE__*/_interopDefault(classnames);
var React__default = /*#__PURE__*/_interopDefault(React);

// src/base-components/switch/Switch.tsx

// src/base-components/switch/Switch.module.css
var Switch_default = {};

// src/base-components/switch/Switch.tsx
function _extends() {
  return _extends = Object.assign ? Object.assign.bind() : function(n) {
    for (var e = 1; e < arguments.length; e++) {
      var t = arguments[e];
      for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
    }
    return n;
  }, _extends.apply(null, arguments);
}
function Switch({
  className,
  thumbProps,
  ...rest
}) {
  return /* @__PURE__ */ React__default.default.createElement(_switch.Switch.Root, _extends({
    className: classnames__default.default(Switch_default.osdkSwitchRoot, className)
  }, rest), /* @__PURE__ */ React__default.default.createElement(_switch.Switch.Thumb, _extends({}, thumbProps, {
    className: classnames__default.default(Switch_default.osdkSwitchThumb, thumbProps?.className)
  })));
}

exports.Switch = Switch;
//# sourceMappingURL=chunk-WBLPQ375.cjs.map
//# sourceMappingURL=chunk-WBLPQ375.cjs.map