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 { t } from 'i18next';
import { Button } from '@/components/ui/button';
type BranchConditionToolbarProps = {
onAnd: () => void;
onOr: () => void;
showOr: boolean;
showAnd: boolean;
readonly: boolean;
};
const BranchConditionToolbar = (props: BranchConditionToolbarProps) => {
return (
<div className="flex gap-2 text-center justify-end">
{props.showAnd && (
<Button
variant="basic"
size="sm"
onClick={props.onAnd}
disabled={props.readonly}
>
{t('+ And')}
</Button>
)}
{props.showOr && (
<Button
variant="basic"
size="sm"
onClick={props.onOr}
disabled={props.readonly}
>
{t('+ Or')}
</Button>
)}
</div>
);
};
BranchConditionToolbar.displayName = 'BranchConditionToolbar';
export { BranchConditionToolbar };