import { createContext } from 'react'; type ActionMenuContextType = { isInRightDrawer: boolean; onActionStartedCallback?: (action: { key: string }) => Promise | void; onActionExecutedCallback?: (action: { key: string }) => Promise | void; }; export const ActionMenuContext = createContext({ isInRightDrawer: false, onActionStartedCallback: () => {}, onActionExecutedCallback: () => {}, });