How to use the cozy-doctypes.Contact.getPrimaryEmail function in cozy-doctypes

To help you get started, we’ve selected a few cozy-doctypes examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cozy / cozy-ui / react / ContactsList / ContactRow.jsx View on Github external
const ContactRow = props => {
  const {
    className,
    contact,
    breakpoints: { isMobile },
    onClick,
    ...rest
  } = props
  const phone = Contact.getPrimaryPhone(contact)
  const email = Contact.getPrimaryEmail(contact)
  const cozyUrl = Contact.getPrimaryCozy(contact)

  return (
    <div> onClick(contact)}
      {...rest}
    &gt;
      
      {!isMobile &amp;&amp; }</div>