customerContact.tsx 423 B

12345678910111213141516171819
  1. import ExternalLink from 'sentry/components/links/externalLink';
  2. import type {Subscription} from 'getsentry/types';
  3. type Props = {
  4. owner?: Subscription['owner'];
  5. };
  6. function CustomerContact({owner}: Props) {
  7. return owner ? (
  8. <ExternalLink
  9. href={`mailto:${encodeURIComponent(`"${owner.name}" <${owner.email}>`)}`}
  10. >
  11. {owner.email}
  12. </ExternalLink>
  13. ) : null;
  14. }
  15. export default CustomerContact;