Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Header.js 734B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // @flow
  2. import React from 'react';
  3. import { translate } from '../../base/i18n';
  4. import { Icon, IconClose } from '../../base/icons';
  5. type Props = {
  6. /**
  7. * The {@link ModalDialog} closing function.
  8. */
  9. onClose: Function,
  10. /**
  11. * Invoked to obtain translated strings.
  12. */
  13. t: Function
  14. };
  15. /**
  16. * Custom header of the {@code EmbedMeetingDialog}.
  17. *
  18. * @returns {React$Element<any>}
  19. */
  20. function Header({ onClose, t }: Props) {
  21. return (
  22. <div
  23. className = 'embed-meeting-dialog-header'>
  24. { t('embedMeeting.title') }
  25. <Icon
  26. onClick = { onClose }
  27. src = { IconClose } />
  28. </div>
  29. );
  30. }
  31. export default translate(Header);