1import * as C from '@/constants'
2import * as React from 'react'
3import {OrdinalContext} from './ids-context'
4import * as Kb from '@/common-adapters'
5import type * as T from '@/constants/types'
6import {EmojiPickerDesktop} from '@/chat/emoji-picker/container'
7import {renderEmoji, RPCUserReacjiToRenderableEmoji} from '@/util/emoji'
8
9type OwnProps = {
10 className?: string
11 onShowingEmojiPicker?: (arg0: boolean) => void
12 style?: Kb.Styles.StylesCrossPlatform
13}
14
15const EmojiRowContainer = React.memo(function EmojiRowContainer(p: OwnProps) {
16 const {className, onShowingEmojiPicker, style} = p
17 const ordinal = React.useContext(OrdinalContext)
18
19 const {hasUnfurls, setReplyTo, toggleMessageReaction, type} = C.useChatContext(
20 C.useShallow(s => {
21 const m = s.messageMap.get(ordinal)
22 const type = m?.type
23 const hasUnfurls = (m?.unfurls?.size ?? 0) > 0
…lines 24–179 unchanged (156 lines)