import type { MattrixwvSwitchProps } from "$/types/InputTypes";
import clsx from "clsx";
import MattrixwvSwitch from "./MattrixwvSwitch";


export default function LightSwitch({
	className,
	knobClassName,
	disabled,
	...props
}: Readonly<MattrixwvSwitchProps>){
	return (
		<MattrixwvSwitch
			className={clsx(
				"bg-neutral-mid",
				className,
				{
					"data-checked:bg-light": !disabled,
					"data-checked:bg-light/80": disabled
				}
			)}
			knobClassName={clsx(
				knobClassName,
				{
					"bg-black": !disabled,
					"bg-neutral-dark": disabled
				}
			)}
			disabled={disabled}
			{...props}
		/>
	);
}
