import { MonitorIcon, MoonIcon, SunIcon } from "@/components/ui/icons"; import { useTheme } from "@/components/theme/theme"; import { cn } from "@/lib/utils"; import type { JSX } from "@solidjs/web"; export function ThemeToggle(props: { variant?: "inline" | "pill" }) { const { theme, setTheme } = useTheme(); const variant = () => props.variant ?? "pill"; return (