export function Switch({ checked=false, onCheckedChange }){
  return (
    <label className="inline-flex items-center gap-2 cursor-pointer">
      <input type="checkbox" checked={checked} onChange={e=>onCheckedChange?.(e.target.checked)} />
      <span>{checked?"On":"Off"}</span>
    </label>
  );
}