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 { StoreApi } from 'zustand';
import { BuilderState } from '../builder-hooks';
type InsertMentionHandler = (propertyPath: string) => void;
export type StepFormState = {
insertMention: InsertMentionHandler | null;
setInsertMentionHandler: (handler: InsertMentionHandler | null) => void;
isFocusInsideListMapperModeInput: boolean;
setIsFocusInsideListMapperModeInput: (
isFocusInsideListMapperModeInput: boolean,
) => void;
};
export const createStepFormState = (
set: StoreApi<BuilderState>['setState'],
): StepFormState => {
return {
setInsertMentionHandler: (insertMention: InsertMentionHandler | null) => {
set({ insertMention });
},
insertMention: null,
isFocusInsideListMapperModeInput: false,
setIsFocusInsideListMapperModeInput: (
isFocusInsideListMapperModeInput: boolean,
) => {
return set(() => ({
isFocusInsideListMapperModeInput,
}));
},
};
};