feat: add theme switcher components with horizontal and dropdown variants

This commit is contained in:
javayhu 2025-03-01 13:48:43 +08:00
parent 22f62949ae
commit 4d60d96180
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import { useTheme } from "next-themes";
import { cn } from "@/lib/utils";
import { useEffect, useState } from "react";
export function ModeToggleHorizontal() {
export function ThemeSwitcherHorizontal() {
const { theme, setTheme } = useTheme();
const [mounted, setMounted] = useState(false);

View File

@ -10,7 +10,7 @@ import {
import { LaptopIcon, MoonIcon, SunIcon } from "lucide-react";
import { useTheme } from "next-themes";
export function ModeToggle() {
export function ThemeSwitcher() {
const { setTheme } = useTheme();
return (