Echo 1aa53eb328 [Glitch] Autosuggest emojis rendering fix
Port d5a7b383faf9085e88e3c54639aefb026f2b3694 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2026-05-19 20:46:27 +02:00

21 lines
458 B
TypeScript

import type { FC } from 'react';
import { Emoji } from './emoji';
interface LegacyEmoji {
id: string;
custom?: boolean;
native?: string;
imageUrl?: string;
}
export const AutosuggestEmoji: FC<{ emoji: LegacyEmoji }> = ({ emoji }) => {
const colons = `:${emoji.id}:`;
return (
<div className='autosuggest-emoji'>
<Emoji code={emoji.native ?? colons} />
<div className='autosuggest-emoji__name'>{colons}</div>
</div>
);
};