import React from 'react' import type { SwitchProps } from './switch' import { classNames } from '../../utils/classNames' import styles from './switch.module.scss' export type Props = SwitchProps> & { onChange?: React.ChangeEventHandler onClick?: React.MouseEventHandler } const Switch = ({ label, toggled, offColor, onColor, reverse, small, square, disabled, className, ...rest }: Props) => { const classes = classNames([ styles.switch, reverse && styles.reverse, small && styles.small, square && styles.square, disabled && styles.disabled, className ]) const styleVariables = { ...(offColor && { '--w-switch-off-color': offColor }), ...(onColor && { '--w-switch-on-color': onColor }) } as React.CSSProperties return ( ) } export default Switch