mirror of
https://github.com/langgenius/dify.git
synced 2026-07-24 04:58:32 +08:00
20 lines
403 B
TypeScript
20 lines
403 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,
|
|
}
|
|
}
|