Echo f870904e5f [Glitch] Emoji: Bypass legacy emoji normalization
Port 3c9b828c714c71598493fe39231175bb156ef6fd to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
2025-10-08 18:22:47 +02:00

26 lines
555 B
TypeScript

import type { ComponentPropsWithoutRef, FC } from 'react';
import { EmojiHTML } from '../emoji/html';
import type { DisplayNameProps } from './index';
export const DisplayNameSimple: FC<
Omit<DisplayNameProps, 'variant' | 'localDomain'> &
ComponentPropsWithoutRef<'span'>
> = ({ account, ...props }) => {
if (!account) {
return null;
}
return (
<bdi>
<EmojiHTML
{...props}
as='span'
htmlString={account.get('display_name_html')}
extraEmojis={account.get('emojis')}
/>
</bdi>
);
};