import { Moon, Sun } from "lucide-react"; import type { ComponentProps } from "react"; import { useTheme } from "@/gsm"; import { Button } from "@/components/ui/button"; type ThemeToggleButtonProps = Omit< ComponentProps, "onClick" | "children" | "type" > & { showLabel?: boolean; }; export function ThemeToggleButton({ className, showLabel = false, variant = "outline", size = "icon-sm", ...props }: ThemeToggleButtonProps) { const { currentTheme, setTheme } = useTheme(); const isDark = currentTheme.name === "dark"; return ( ); }