{emojis.map((emoji, index) => {
const maybeFocusRef = index === 0 ? focusRef : undefined;
return (
-
+ ref={maybeFocusRef}
+ selected={emoji === selected}
+ />
);
})}
-
+ {moreButton}
);
}
diff --git a/ts/components/emoji/Emoji.tsx b/ts/components/emoji/Emoji.tsx
index a7f46e8808d3..3e7ae9c95748 100644
--- a/ts/components/emoji/Emoji.tsx
+++ b/ts/components/emoji/Emoji.tsx
@@ -15,6 +15,7 @@ export type OwnProps = {
skinTone?: SkinToneKey | number;
size?: EmojiSizeType;
children?: React.ReactNode;
+ title?: string;
};
export type Props = OwnProps &
@@ -27,7 +28,15 @@ export type Props = OwnProps &
export const Emoji = React.memo(
React.forwardRef