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

@ -13,7 +13,7 @@ const EmptyChat = ({
return (
<div className="relative">
<ThemeSwitcher
// size={17}
size={17}
className="absolute top-2 right-0 lg:hidden" />
<div className="flex flex-col items-center justify-center min-h-screen max-w-screen-sm mx-auto p-2 space-y-8">

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();