import { Check, Moon, Sun } from "lucide-react"; import { Button } from "@/components/ui/button"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; import { cn } from "@/lib/utils"; import { useTheme } from "@/components/admin/theme-provider"; /** * Toggle button that lets users switch between light, dark, and system UI themes. * * User's selection is persisted using the store. * Automatically included in the default Layout component header. * * @see {@link https://marmelab.com/shadcn-admin-kit/docs/thememodetoggle ThemeModeToggle documentation} */ export function ThemeModeToggle() { const { theme, setTheme } = useTheme(); return ( setTheme("light")}> Light setTheme("dark")}> Dark setTheme("system")}> System ); }