add actions for workflow library (#5669)

Co-authored-by: Mary Hipp <maryhipp@Marys-MacBook-Air.local>
This commit is contained in:
Mary Hipp Rogers
2024-02-07 09:14:54 -05:00
committed by GitHub
parent 79ae9c4e64
commit 800c481515
7 changed files with 43 additions and 15 deletions

View File

@@ -0,0 +1,10 @@
import { createAction } from '@reduxjs/toolkit';
import type { WorkflowCategory } from 'features/nodes/types/workflow';
export const workflowDownloaded = createAction('workflowLibrary/workflowDownloaded');
export const workflowLoadedFromFile = createAction('workflowLibrary/workflowLoadedFromFile');
export const newWorkflowSaved = createAction<{ category: WorkflowCategory }>('workflowLibrary/newWorkflowSaved');
export const workflowUpdated = createAction('workflowLibrary/workflowUpdated');