interaction of plugin detail panel

This commit is contained in:
JzoNg
2024-10-12 12:35:56 +08:00
parent c75e02b5b2
commit 060a894bd1
6 changed files with 162 additions and 37 deletions

View File

@ -7,3 +7,8 @@ export async function handleDelete() {
// revalidatePath only invalidates the cache when the included path is next visited.
revalidatePath('/')
}
export async function fetchPluginDetail(id: string) {
// Fetch plugin detail TODO
return { id }
}

View File

@ -5,6 +5,7 @@ import { extensionDallE, modelGPT4, toolNotion } from '@/app/components/plugins/
import PluginItem from '@/app/components/plugins/plugin-item'
import CardMoreInfo from '@/app/components/plugins/card/card-more-info'
import ProviderCard from '@/app/components/plugins/provider-card'
import PluginDetailPanel from '@/app/components/plugins/plugin-detail-panel'
import { getLocaleOnServer, useTranslation as translate } from '@/i18n/server'
import Badge from '@/app/components/base/badge'
const PluginList = async () => {
@ -72,6 +73,9 @@ const PluginList = async () => {
))}
</div>
</div>
<PluginDetailPanel
locale={locale}
/>
</div>
)
}