import { j as jsxRuntimeExports } from '../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
import { Root as $6be4966fd9bbc698$export$be92b6f5f03c0fe9, Thumb as $6be4966fd9bbc698$export$6521433ed15a34db } from '../node_modules/.pnpm/@radix-ui_react-switch@1.0.3_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-switch/dist/index.js';
import { cva } from '../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
import { forwardRef } from 'react';
import styles from './switch.module.css.js';

const switchVariants = cva(styles.switch);
/**
 * @deprecated Use Switch from '@raystack/apsara/v1' instead.
 */
const Switch = forwardRef(({ className, ...props }, forwardedRef) => (jsxRuntimeExports.jsx($6be4966fd9bbc698$export$be92b6f5f03c0fe9, { ...props, ref: forwardedRef, className: switchVariants({ className }), children: jsxRuntimeExports.jsx(SwitchThumb, {}) })));
const thumb = cva(styles.thumb);
const SwitchThumb = forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($6be4966fd9bbc698$export$6521433ed15a34db, { ref: ref, className: thumb({ className }), ...props })));
SwitchThumb.displayName = $6be4966fd9bbc698$export$6521433ed15a34db.displayName;

export { Switch };
//# sourceMappingURL=switch.js.map
