feat: loading error struct

This commit is contained in:
Joel
2024-11-20 11:50:33 +08:00
parent 386ee7b07b
commit e6a03f7a58
5 changed files with 38 additions and 4 deletions

View File

@ -7,15 +7,17 @@ import CardMoreInfo from '@/app/components/plugins/card/card-more-info'
import Badge from '@/app/components/base/badge'
import InstallBundle from '@/app/components/plugins/install-plugin/install-bundle'
import { useBoolean } from 'ahooks'
import LoadingError from '@/app/components/plugins/install-plugin/base/loading-error'
const PluginList = () => {
const pluginList = [toolNotion, extensionDallE, modelGPT4, customTool]
const [isShow, {
setFalse: hide,
}] = useBoolean(true)
}] = useBoolean(false)
return (
<div className='pb-3 bg-white'>
<LoadingError />
{isShow && (
<InstallBundle
onClose={hide}