import React from 'react';
import classNames from 'classnames';
import { Emojify } from './Emojify';
import { LocalizerType } from '../../types/Util';
type Props = {
  phoneNumber: string;
  name?: string;
  profileName?: string;
  i18n: LocalizerType;
  module?: string;
  boldProfileName?: Boolean;
  compact?: Boolean;
  shouldShowPubkey: Boolean;
};
export const ContactName = (props: Props) => {
  const {
    phoneNumber,
    name,
    profileName,
    i18n,
    module,
    boldProfileName,
    compact,
    shouldShowPubkey,
  } = props;
  const prefix = module ? module : 'module-contact-name';
  const title = name ? name : phoneNumber;
  const shouldShowProfile = Boolean(profileName || name);
  const styles = (boldProfileName
    ? {
        fontWeight: 'bold',
      }
    : {}) as React.CSSProperties;
  const textProfile = profileName || name || i18n('anonymous');
  const profileElement = shouldShowProfile ? (
    
      
    
  ) : null;
  const pubKeyElement = shouldShowPubkey ? (
    
      
    
  ) : null;
  return (
    
      {profileElement}
      {shouldShowProfile ? ' ' : null}
      {pubKeyElement}
    
  );
};