mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-03-01 16:20:25 +00:00
feat: 新版webui
This commit is contained in:
8
napcat.webui/src/provider.tsx
Normal file
8
napcat.webui/src/provider.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { HeroUIProvider } from '@heroui/system'
|
||||
import { useNavigate } from 'react-router-dom'
|
||||
|
||||
export function Provider({ children }: { children: React.ReactNode }) {
|
||||
const navigate = useNavigate()
|
||||
|
||||
return <HeroUIProvider navigate={navigate}>{children}</HeroUIProvider>
|
||||
}
|
||||
Reference in New Issue
Block a user