2021-02-23 20:34:28 +00:00
|
|
|
// 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 = {
|
2021-02-23 20:34:28 +00:00
|
|
|
className?: string;
|
2021-01-26 01:01:19 +00:00
|
|
|
text?: string;
|
|
|
|
};
|
|
|
|
|
2022-11-18 00:45:19 +00:00
|
|
|
export function About({
|
2021-02-23 20:34:28 +00:00
|
|
|
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 (
|
2021-02-23 20:34:28 +00:00
|
|
|
<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
|
|
|
}
|