mirror of https://github.com/langgenius/dify.git
16 lines
386 B
TypeScript
16 lines
386 B
TypeScript
import { useTriggerSubscriptions } from '@/service/use-triggers'
|
|
import { usePluginStore } from '../store'
|
|
|
|
export const useSubscriptionList = () => {
|
|
const detail = usePluginStore(state => state.detail)
|
|
|
|
const { data: subscriptions, isLoading, refetch } = useTriggerSubscriptions(detail?.provider || '')
|
|
|
|
return {
|
|
detail,
|
|
subscriptions,
|
|
isLoading,
|
|
refetch,
|
|
}
|
|
}
|