AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { TelemetryEventName } from '@activepieces/shared';
import { useEffect } from 'react';
import { useLatest } from 'react-use';
import { useInsideFeatureSample } from '@/app/components/feature-sample';
import { useTelemetry } from '@/components/providers/telemetry-provider';
export function useAdminPageViewed(page: string) {
const { capture } = useTelemetry();
const latestCapture = useLatest(capture);
const locked = useInsideFeatureSample();
useEffect(() => {
latestCapture.current({
name: TelemetryEventName.PLATFORM_ADMIN_PAGE_VIEWED,
payload: { page, locked },
});
}, [latestCapture, page, locked]);
}