- Fix command menu not closing after executing an action - Add delete and favorite actions to workflow and workflow versions
14 lines
439 B
TypeScript
14 lines
439 B
TypeScript
import { createContext } from 'react';
|
|
|
|
type ActionMenuContextType = {
|
|
isInRightDrawer: boolean;
|
|
onActionStartedCallback?: (action: { key: string }) => Promise<void> | void;
|
|
onActionExecutedCallback?: (action: { key: string }) => Promise<void> | void;
|
|
};
|
|
|
|
export const ActionMenuContext = createContext<ActionMenuContextType>({
|
|
isInRightDrawer: false,
|
|
onActionStartedCallback: () => {},
|
|
onActionExecutedCallback: () => {},
|
|
});
|