import React from 'react'; import { IUserMention, IUserChannel } from '../interfaces'; interface IMarkdownContext { mentions?: IUserMention[]; channels?: IUserChannel[]; useRealName?: boolean; username?: string; baseUrl?: string; navToRoomInfo?: Function; getCustomEmoji?: Function; onLinkPress?: Function; } const defaultState = { mentions: [], channels: [], useRealName: false, username: '', baseUrl: '', navToRoomInfo: () => {} }; const MarkdownContext = React.createContext(defaultState); export default MarkdownContext;