message / apps /web /src /hooks /useSystem.ts
dot
Deliver native DSH market and authenticated cloud MCP with HF deployment
1140c43
Raw History Blame Contribute Delete
377 Bytes
/**
* 系统状态相关 hooks
*/
import { useQuery } from '@tanstack/react-query';
import { systemApi } from '@api/system';
import { QUERY_STALE_TIME } from '@lib/constants';
/**
* 获取系统状态
*/
export function useSystemStatus() {
return useQuery({
queryKey: ['system', 'status'],
queryFn: systemApi.getStatus,
staleTime: QUERY_STALE_TIME,
});
}