import { createContext } from 'react'; import type { SendStatus } from '../../../types/SendStatus'; type ActivitySendStatusContextType = { sendStatusByActivityKeyState: readonly [ReadonlyMap]; }; const ActivitySendStatusContext = createContext( // This is intentionally casted to `undefined`. We will do the checking in `useContext`. undefined as unknown as ActivitySendStatusContextType ); export default ActivitySendStatusContext; export type { ActivitySendStatusContextType };