feat: add workflow editor shortcuts (#3382) (#3390)

This commit is contained in:
Pascal M
2024-04-12 14:40:19 +02:00
committed by GitHub
parent d7fd56051a
commit 17efc3ab79
3 changed files with 122 additions and 1 deletions

View File

@@ -63,6 +63,8 @@ type Shape = {
setBuildInTools: (tools: ToolWithProvider[]) => void
customTools: ToolWithProvider[]
setCustomTools: (tools: ToolWithProvider[]) => void
clipboardElements: Node[]
setClipboardElements: (clipboardElements: Node[]) => void
}
export const createWorkflowStore = () => {
@@ -107,6 +109,8 @@ export const createWorkflowStore = () => {
setBuildInTools: buildInTools => set(() => ({ buildInTools })),
customTools: [],
setCustomTools: customTools => set(() => ({ customTools })),
clipboardElements: [],
setClipboardElements: clipboardElements => set(() => ({ clipboardElements })),
}))
}