Rocket.Chat.ReactNative/app/definitions/IEmoji.ts

32 lines
587 B
TypeScript

// TODO: evaluate unification with IEmoji
export interface IEmoji {
content?: string;
name?: string;
extension?: string;
isCustom?: boolean;
}
export interface ICustomEmoji {
baseUrl?: string;
emoji: IEmoji;
style: any;
}
export interface IEmojiCategory {
baseUrl: string;
emojis: IEmoji[];
onEmojiSelected: Function;
emojisPerRow: number;
width: number;
style: any;
tabLabel: string;
}
// TODO: copied from reducers/customEmojis. We can unify later.
export interface IReduxEmoji {
name: string;
extension: any;
}
export type TGetCustomEmoji = (name: string) => any;