import { useTheme } from "../context/ThemeContext"; import { Moon, Sun, Cloud } from "lucide-react"; import { Half2Icon } from "@radix-ui/react-icons"; // Theme toggle component using same icons as Better Todo app // Icons: Moon (dark), Sun (light), Half2Icon (tan), Cloud (cloud) export default function ThemeToggle() { const { theme, toggleTheme } = useTheme(); // Get the appropriate icon for current theme const getIcon = () => { switch (theme) { case "dark": return ; case "light": return ; case "tan": // Half2Icon from Radix uses different sizing return ; case "cloud": return ; } }; // Get theme label for accessibility const getLabel = () => { switch (theme) { case "dark": return "Dark"; case "light": return "Light"; case "tan": return "Tan"; case "cloud": return "Cloud"; } }; return ( ); }