tachybase_todo/packages/plugins/workflow/src/client/FlowContext.ts

9 lines
174 B
TypeScript

import React, { useContext } from "react";
export const FlowContext = React.createContext<any>({});
export function useFlowContext() {
return useContext(FlowContext);
}