import React from 'react';

function ToggleSwitch({ checked, onChange }) {
  return (
    <label className="irandargah-toggle">
      <input
        type="checkbox"
        className="irandargah-toggle-input"
        checked={checked}
        onChange={(e) => onChange(e.target.checked)}
      />
      <span className="irandargah-toggle-slider"></span>
    </label>
  );
}

export default ToggleSwitch;


