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 (
setTheme("light")} > setTheme("dark")} > setTheme("system")} >
); } function ToggleButton(props: { active: boolean; children: JSX.Element; label: string; onClick: () => void; }) { return ( ); }