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.

JoinMeetingDialog.tsx 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import React, { useCallback, useState } from 'react';
  2. import { useTranslation } from 'react-i18next';
  3. import { View, ViewStyle } from 'react-native';
  4. import Dialog from 'react-native-dialog';
  5. import { StandaloneRaiseHandButton as RaiseHandButton } from '../../../reactions/components/native/RaiseHandButton';
  6. import styles from '../../components/native/styles';
  7. /**
  8. * Component that renders the join meeting dialog for visitors.
  9. *
  10. * @returns {JSX.Element}
  11. */
  12. export default function JoinMeetingDialog() {
  13. const { t } = useTranslation();
  14. const [ visible, setVisible ] = useState(true);
  15. const closeDialog = useCallback(() => {
  16. setVisible(false);
  17. }, []);
  18. return (
  19. <Dialog.Container
  20. coverScreen = { false }
  21. visible = { visible }>
  22. <Dialog.Title>{ t('visitors.joinMeeting.title') }</Dialog.Title>
  23. <Dialog.Description>
  24. { t('visitors.joinMeeting.description') }
  25. <View style = { styles.raiseHandButton as ViewStyle }>
  26. {/* @ts-ignore */}
  27. <RaiseHandButton disableClick = { true } />
  28. </View>
  29. </Dialog.Description>
  30. <Dialog.Description>{t('visitors.joinMeeting.wishToSpeak')}</Dialog.Description>
  31. <Dialog.Button
  32. label = { t('dialog.Ok') }
  33. onPress = { closeDialog } />
  34. </Dialog.Container>
  35. );
  36. }