mirror of
https://github.com/langgenius/dify.git
synced 2026-03-06 16:16:38 +08:00
Co-authored-by: AkaraChen <akarachen@outlook.com> Co-authored-by: Yi <yxiaoisme@gmail.com> Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: kurokobo <kuro664@gmail.com> Co-authored-by: Hiroshi Fujita <fujita-h@users.noreply.github.com>
15 lines
345 B
TypeScript
15 lines
345 B
TypeScript
import {
|
|
usePluginManifestInfo,
|
|
} from '@/service/use-plugins'
|
|
|
|
export const usePluginInstalledCheck = (providerName = '') => {
|
|
const pluginID = providerName?.split('/').splice(0, 2).join('/')
|
|
|
|
const { data: manifest } = usePluginManifestInfo(pluginID)
|
|
|
|
return {
|
|
inMarketPlace: !!manifest,
|
|
manifest: manifest?.data.plugin,
|
|
}
|
|
}
|