import { useTheme } from "../theme/ThemeContext";
import { Button } from "./ui";

export function ThemeToggle() {
  const { theme, toggleTheme } = useTheme();
  return (
    <Button variant="soft" onClick={toggleTheme}>
      {theme === "dark" ? "切換淺色" : "切換深色"}
    </Button>
  );
}
