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

27 lines
473 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;
};
export const About = ({
className = 'module-about__text',
text,
}: 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>
);
};