The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/client/contexts/ActionManagerContext.ts

11 lines
411 B

import { createContext, useContext } from 'react';
import type * as ActionManager from '../../app/ui-message/client/ActionManager';
type ActionManagerContextValue = typeof ActionManager;
export const ActionManagerContext = createContext<ActionManagerContextValue | undefined>(undefined);
export const useActionManager = (): typeof ActionManager | undefined => {
return useContext(ActionManagerContext);
};