🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import type { DashboardWidgetItem } from '@/services/dashboard';
import { dashboardSelectors, useDashboardStore } from '@/store/dashboard';
/**
* The widget's long-term trend from `metric_points`. Every card and drill-down
* showing the same widget shares one request through the SWR key.
*/
export const useWidgetTrend = (widget: DashboardWidgetItem) => {
const useFetchWidgetTrend = useDashboardStore((s) => s.useFetchWidgetTrend);
useFetchWidgetTrend(widget);
return useDashboardStore(dashboardSelectors.widgetTrend(widget.id));
};