update Switcher: incorporate size

This commit is contained in:
Buns Enchantress 2024-06-12 08:06:08 -05:00
parent 94a36f7f37
commit 24c28e8a15
2 changed files with 4 additions and 4 deletions

View file

@ -1,13 +1,13 @@
'use client';
import { useTheme } from 'next-themes';
import { SunIcon, MoonIcon, MonitorIcon } from 'lucide-react';
// import { SunIcon, MoonIcon, MonitorIcon } from 'lucide-react';
import { useCallback, useEffect, useState } from 'react';
import { cn } from '@/lib/utils';
// import { cn } from '@/lib/utils';
import { Select } from '../SettingsDialog';
type Theme = 'dark' | 'light' | 'system';
const ThemeSwitcher = ({ className }: { className?: string }) => {
const ThemeSwitcher = ({ className, size }: { className?: string, size?: any }) => {
const [mounted, setMounted] = useState(false);
const { theme, setTheme } = useTheme();