You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UserMediaPermissionsFilmstripOnlyOverlay.js 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import React from 'react';
  2. import { connect } from 'react-redux';
  3. import { translate, translateToHTML } from '../../base/i18n';
  4. import AbstractUserMediaPermissionsOverlay, { abstractMapStateToProps }
  5. from './AbstractUserMediaPermissionsOverlay';
  6. import FilmstripOnlyOverlayFrame from './FilmstripOnlyOverlayFrame';
  7. /**
  8. * Implements a React Component for overlay with guidance how to proceed with
  9. * gUM prompt. This component will be displayed only for filmstrip only mode.
  10. */
  11. class UserMediaPermissionsFilmstripOnlyOverlay
  12. extends AbstractUserMediaPermissionsOverlay {
  13. /**
  14. * Implements React's {@link Component#render()}.
  15. *
  16. * @inheritdoc
  17. * @override
  18. * @returns {ReactElement|null}
  19. */
  20. render() {
  21. const { t } = this.props;
  22. const textKey = `userMedia.${this.props.browser}GrantPermissions`;
  23. return (
  24. <FilmstripOnlyOverlayFrame
  25. icon = 'icon-mic-camera-combined'
  26. isLightOverlay = { true }>
  27. <div className = 'inlay-filmstrip-only__container'>
  28. <div className = 'inlay-filmstrip-only__title'>
  29. {
  30. t('startupoverlay.title',
  31. { postProcess: 'resolveAppName' })
  32. }
  33. </div>
  34. <div className = 'inlay-filmstrip-only__text'>
  35. {
  36. translateToHTML(t, textKey)
  37. }
  38. </div>
  39. </div>
  40. </FilmstripOnlyOverlayFrame>
  41. );
  42. }
  43. }
  44. export default translate(
  45. connect(abstractMapStateToProps)(UserMediaPermissionsFilmstripOnlyOverlay));