import React from 'react';

type SwitchProps = {
  id?: string;
  name?: string;
  checked?: boolean;
  onCheckedChange?: (checked: boolean) => void;
  className?: string;
};

export const Switch: React.FC<SwitchProps> = ({ id, name, checked, onCheckedChange, className }) => {
  return (
    <input
      id={id}
      name={name}
      type="checkbox"
      className={className}
      checked={!!checked}
      onChange={(e) => onCheckedChange?.(e.target.checked)}
    />
  );
};


