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

24 lines
508 B
TypeScript
Raw Normal View History

import React from 'react';
2020-07-24 01:35:32 +00:00
import { LocalizerType } from '../../types/Util';
import { Emojify } from './Emojify';
export interface PropsType {
i18n: LocalizerType;
2020-07-24 01:35:32 +00:00
title: string;
module?: string;
name?: string;
phoneNumber?: string;
profileName?: string;
}
2020-09-14 19:51:27 +00:00
export const ContactName = ({ module, title }: PropsType): JSX.Element => {
const prefix = module || 'module-contact-name';
2020-09-14 19:51:27 +00:00
return (
<span className={prefix} dir="auto">
<Emojify text={title || ''} />
</span>
);
};