signal-desktop/ts/components/conversation/About.tsx

27 lines
469 B
TypeScript
Raw Normal View History

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