import clsx from "clsx";
interface SwitchProps {
enabled: boolean;
onChange: (enabled: boolean) => void;
}
function Switch({ enabled, onChange }: SwitchProps) {
return (
onChange(!enabled)}
className={clsx(
"2xl:rounded-[0.833vw] rounded-xl 2xl:w-[2.778vw] w-10 2xl:py-[0.139vw] py-[2px] cursor-pointer transition-colors",
enabled ? "bg-[#7B60F3]" : "bg-[#F0F0F0]"
)}
>
);
}
export default Switch;