您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CopyMeetingLinkSection.js 988B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // @flow
  2. import React from 'react';
  3. import CopyButton from '../../../../base/buttons/CopyButton';
  4. import { translate } from '../../../../base/i18n';
  5. import { getDecodedURI } from '../../../../base/util';
  6. type Props = {
  7. /**
  8. * Invoked to obtain translated strings.
  9. */
  10. t: Function,
  11. /**
  12. * The URL of the conference.
  13. */
  14. url: string
  15. };
  16. /**
  17. * Component meant to enable users to copy the conference URL.
  18. *
  19. * @returns {React$Element<any>}
  20. */
  21. function CopyMeetingLinkSection({ t, url }: Props) {
  22. return (
  23. <>
  24. <span>{t('addPeople.shareLink')}</span>
  25. <CopyButton
  26. className = 'invite-more-dialog-conference-url'
  27. displayedText = { getDecodedURI(url) }
  28. textOnCopySuccess = { t('addPeople.linkCopied') }
  29. textOnHover = { t('addPeople.copyLink') }
  30. textToCopy = { url } />
  31. </>
  32. );
  33. }
  34. export default translate(CopyMeetingLinkSection);