import type { CheckboxProps } from "$/types/InputTypes";
import clsx from "clsx";
import { forwardRef } from "react";
import MattrixwvCheckbox from "./MattrixwvCheckbox";


const MoltenCheckbox = forwardRef<HTMLInputElement, CheckboxProps>(({
	className,
	showBox = true,
	...props
}, ref) => {
	return (
		<MattrixwvCheckbox
			className={clsx(
				className,
				{
					"group-data-checked:bg-molten group-data-checked:stroke-white": showBox,
					"group-data-checked:stroke-molten": !showBox
				}
			)}
			showBox={showBox}
			ref={ref}
			{...props}
		/>
	);
});

MoltenCheckbox.displayName = "MoltenCheckbox";

export default MoltenCheckbox;
