Fun picker improvements

This commit is contained in:
Jamie Kyle
2025-03-26 12:35:32 -07:00
committed by GitHub
parent 427f91f903
commit b0653d06fe
142 changed files with 3581 additions and 1280 deletions

View File

@@ -4,10 +4,14 @@ import React, { useMemo } from 'react';
import { Emojify } from './conversation/Emojify';
import { bidiIsolate } from '../util/unicodeBidi';
export function UserText({ text }: { text: string }): JSX.Element {
export type UserTextProps = Readonly<{
text: string;
}>;
export function UserText(props: UserTextProps): JSX.Element {
const normalizedText = useMemo(() => {
return bidiIsolate(text);
}, [text]);
return bidiIsolate(props.text);
}, [props.text]);
return (
<span dir="auto">
<Emojify text={normalizedText} />