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

27 lines
579 B
TypeScript
Raw Normal View History

import React from 'react';
2020-07-23 18:35:32 -07:00
import { LocalizerType } from '../../types/Util';
import { Emojify } from './Emojify';
export interface PropsType {
i18n: LocalizerType;
2020-07-23 18:35:32 -07:00
title: string;
module?: string;
name?: string;
phoneNumber?: string;
profileName?: string;
}
export class ContactName extends React.Component<PropsType> {
public render() {
2020-07-23 18:35:32 -07:00
const { module, title } = this.props;
const prefix = module ? module : 'module-contact-name';
return (
<span className={prefix} dir="auto">
<Emojify text={title || ''} />
</span>
);
}
}