botframework-webchat-component
Version:
React component of botframework-webchat
12 lines (7 loc) • 375 B
text/typescript
import { createContext, type MutableRefObject } from 'react';
import { type FocusTranscriptInit } from '../../types/internal/FocusTranscriptInit';
export type ContextType = {
focusTranscriptCallbacksRef: MutableRefObject<((init: FocusTranscriptInit) => Promise<void>)[]>;
};
const context = createContext<ContextType>(undefined as ContextType);
export default context;