feat: 新版webui

This commit is contained in:
bietiaop committed 2025-01-24 21:13:44 +08:00
1 parent afc9c7ed8d
commit 31c0c1f4bc
201 files changed
+18454 -3422

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import { Toaster as HotToaster } from 'react-hot-toast'
import { useTheme } from '@/hooks/use-theme'
export const Toaster = () => {
const { isDark } = useTheme()
return (
<HotToaster
toastOptions={{
style: {
borderRadius: '20px',
background: isDark ? '#333' : '#fff',
color: isDark ? '#fff' : '#333'
}
}}
/>
)
}
export default Toaster