import React from "react";
import "../../css/Toggle.css";

const Toggle = ({ toggled, onToggle }) => {
  return (
    <button
      className={`toggle-btn ${toggled ? "toggled" : ""}`}
      onClick={onToggle}
    >
      <div className="thumb"></div>
    </button>
  );
};

export default Toggle;
