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

460 B
Raw Blame
import { t } from 'i18next';

import { Button } from '@/components/ui/button';
import { flowHooks } from '@/features/flows/hooks/flow-hooks';

export const CreateMcpFlowButton = () => {
  const { mutate: createMcpFlow, isPending } = flowHooks.useCreateMcpFlow();

  return (
    <Button
      onClick={() => createMcpFlow()}
      variant="outline"
      className="mr-auto"
    >
      {isPending ? t('Creating...') : t('New MCP Flow')}
    </Button>
  );
};