function ThemeToggle({ theme, onToggleTheme, hidden = false }) {
  return (
    <button
      className="theme-toggle"
      title={theme === "dark" ? "הפעל מצב בהיר" : "הפעל מצב חשוך"}
      onClick={onToggleTheme}
      aria-label="Toggle theme"
      style={{ display: hidden ? "none" : "flex" }}
    >
      {theme === "dark" ? "🌤" : "🌙"}
    </button>
  );
}

export default ThemeToggle;
