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


export default function DangerSwitch({
	className,
	knobClassName,
	disabled,
	...props
}: MattrixwvSwitchProps){
	return (
		<MattrixwvSwitch
			{...props}
			className={clsx(
				"bg-gray-400",
				className,
				{
					"data-checked:bg-red-600": !disabled,
					"data-checked:bg-red-400/80": disabled
				}
			)}
			knobClassName={clsx(
				knobClassName,
				{
					"bg-white": !disabled,
					"bg-gray-300": disabled
				}
			)}
			disabled={disabled}
		/>
	);
}
