botframework-webchat-component
Version:
React component of botframework-webchat
13 lines (8 loc) • 413 B
text/typescript
import { createContext } from 'react';
import type { ActivityWithRenderer, ReadonlyActivityTree } from './types';
type ActivityTreeContextType = {
activityTreeWithRendererState: readonly [ReadonlyActivityTree];
flattenedActivityTreeWithRendererState: readonly [readonly ActivityWithRenderer[]];
};
export default createContext<ActivityTreeContextType>(undefined);
export type { ActivityTreeContextType };