25 lines
959 B
TypeScript
25 lines
959 B
TypeScript
// Metro module 9408 (f9409).
|
|
import { EMOJI_URL_BASE_SIZE } from "../../../emojis/EmojiConstants";
|
|
import AvatarUtils from "../../../../utils/AvatarUtils";
|
|
import { dismissGlobalKeyboard } from "../../../../utils/native/KeyboardManagerUtils";
|
|
import ActionSheetActionCreators from "../../../action_sheet/native/ActionSheetActionCreators";
|
|
export function openEmojiActionSheet(a0) {
|
|
const alt = a0.uniqueName != null && a0.uniqueName !== "" ? a0.uniqueName : a0.name;
|
|
const emojiNode = a0.id == null && a0.surrogates != null ? {
|
|
surrogate: a0.surrogates,
|
|
content: `:${alt}:`
|
|
} : {
|
|
id: a0.id,
|
|
alt,
|
|
src: a0.id != null ? AvatarUtils.getEmojiURL({
|
|
id: a0.id,
|
|
animated: a0.animated,
|
|
size: EMOJI_URL_BASE_SIZE
|
|
}) : a0.url
|
|
};
|
|
dismissGlobalKeyboard();
|
|
ActionSheetActionCreators.openLazy(import("../../../messages/native/emoji/MessageEmojiActionSheet"), "MessageEmojiActionSheet", {
|
|
emojiNode
|
|
}, "stack");
|
|
}
|