18 lines
566 B
TypeScript
18 lines
566 B
TypeScript
// Metro module 14258 (f14259).
|
|
import EmojiStore from "../emojis/EmojiStore";
|
|
import { useStateFromStores } from "../../_bundle/Module589";
|
|
export function useEmojiByIdOrName(a0, a1) {
|
|
return useStateFromStores([EmojiStore], () => {
|
|
if (a1 == null) {
|
|
return null;
|
|
}
|
|
const disambiguatedEmojiContext = EmojiStore.getDisambiguatedEmojiContext(a0);
|
|
let r9 = disambiguatedEmojiContext.getById(a1);
|
|
if (r9 == null) {
|
|
r9 = disambiguatedEmojiContext.getByName(a1);
|
|
}
|
|
return r9;
|
|
}, [a0, a1]);
|
|
}
|
|
export default useEmojiByIdOrName;
|