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 { isNil } from '@activepieces/core-utils';
import { FlowVersionState } from '@activepieces/shared';
import React from 'react';
import { useBuilderStateContext } from '@/app/builder/builder-hooks';
import { FlowStatusToggle, FlowVersionStateDot } from '@/features/flows';
const BuilderFlowStatusSection = React.memo(() => {
const [flowVersion, flow] = useBuilderStateContext((state) => [
state.flowVersion,
state.flow,
]);
return (
<div className="flex items-center space-x-2">
<FlowVersionStateDot
state={flowVersion.state}
versionId={flowVersion.id}
publishedVersionId={flow.publishedVersionId}
></FlowVersionStateDot>
{(flow.publishedVersionId === flowVersion.id ||
(flowVersion.state === FlowVersionState.DRAFT &&
!isNil(flow.publishedVersionId))) && (
<FlowStatusToggle flow={flow}></FlowStatusToggle>
)}
</div>
);
});
BuilderFlowStatusSection.displayName = 'BuilderFlowStatusSection';
export { BuilderFlowStatusSection };