mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-12 16:00:27 +00:00
feat: 新版webui
This commit is contained in:
22
napcat.webui/src/components/page_loading.tsx
Normal file
22
napcat.webui/src/components/page_loading.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { Spinner } from '@heroui/spinner'
|
||||
import clsx from 'clsx'
|
||||
|
||||
export interface PageLoadingProps {
|
||||
loading?: boolean
|
||||
}
|
||||
const PageLoading: React.FC<PageLoadingProps> = ({ loading }) => {
|
||||
return (
|
||||
<div
|
||||
className={clsx(
|
||||
'absolute top-0 left-0 w-full h-full bg-zinc-500 bg-opacity-10 z-50 flex justify-center items-center backdrop-blur',
|
||||
{
|
||||
hidden: !loading
|
||||
}
|
||||
)}
|
||||
>
|
||||
<Spinner size="lg" />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default PageLoading
|
||||
Reference in New Issue
Block a user