import { createContext } from 'react'; import { type AllTyping } from '../types/AllTyping'; export type ActivityTypingContextType = { allTypingState: readonly [ReadonlyMap]; }; const ActivityTypingContext = createContext( new Proxy({} as ActivityTypingContextType, { get() { throw new Error('botframework-webchat internal: This hook can only be used under .'); } }) ); export default ActivityTypingContext;