MCPcopy Create free account
hub / github.com/NanmiCoder/MediaCrawler / usePlatforms

Function usePlatforms

webui/src/hooks/useCrawler.ts:79–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79export function usePlatforms() {
80 return useQuery({
81 queryKey: ['platforms'],
82 queryFn: async () => {
83 const { data } = await configApi.getPlatforms()
84 return data.platforms
85 },
86 staleTime: Infinity,
87 })
88}
89
90export function useConfigOptions() {
91 return useQuery({

Callers 1

CrawlerConfigPanelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected