Skip to content

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

771 B
Raw Blame
import { PlatformAnalyticsReport } from '@activepieces/shared';

import { ActiveFlowsMetric } from './active-flows-metric';
import { ActiveUsersMetric } from './active-users-metric';
import { FlowRunsMetric } from './flow-runs-metric';
import { TimeSavedMetric } from './time-saved-metric';

type SummaryProps = {
  report?: PlatformAnalyticsReport;
};

export function Summary({ report }: SummaryProps) {
  const isLoading = !report;

  return (
    <div>
      <div className="mt-2 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
        <TimeSavedMetric isLoading={isLoading} report={report} />
        <ActiveFlowsMetric report={report} />
        <ActiveUsersMetric report={report} />
        <FlowRunsMetric report={report} />
      </div>
    </div>
  );
}