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


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