Files
Desktop/ts/components/conversation/About.dom.tsx
Jamie b405e3d83d Prepare for upgrade to React 19
Co-authored-by: ayumi-signal <ayumi@signal.org>
2025-12-23 13:42:56 -08:00

27 lines
482 B
TypeScript

// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
import { Emojify } from './Emojify.dom.js';
export type PropsType = {
className?: string;
text?: string;
};
export function About({
className = 'module-about__text',
text,
}: PropsType): React.JSX.Element | null {
if (!text) {
return null;
}
return (
<span className={className} dir="auto">
<Emojify text={text || ''} />
</span>
);
}