123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- import { noop } from 'lodash-es';
- import React from 'react';
- import { useTranslation } from 'react-i18next';
- import { makeStyles } from 'tss-react/mui';
-
- import { IconArrowUp } from '../../../base/icons/svg';
- import ToolboxButtonWithPopup from '../../../base/toolbox/components/web/ToolboxButtonWithPopup';
- import Dialog from '../../../base/ui/components/web/Dialog';
- import { RaiseHandButton } from '../../../reactions/components/web/RaiseHandButton';
-
- const useStyles = makeStyles()(theme => {
- return {
- raiseHand: {
- alignItems: 'center',
- display: 'flex',
- flexDirection: 'column',
- marginTop: theme.spacing(3),
- marginBottom: theme.spacing(3),
- pointerEvents: 'none'
- },
- raiseHandTooltip: {
- border: '1px solid #444',
- borderRadius: theme.shape.borderRadius,
- paddingBottom: theme.spacing(1),
- paddingTop: theme.spacing(1),
- paddingLeft: theme.spacing(2),
- paddingRight: theme.spacing(2)
- },
- raiseHandButton: {
- display: 'inline-block',
- marginTop: theme.spacing(2),
- marginBottom: theme.spacing(2),
- position: 'relative'
- }
- };
- });
-
- /**
- * Component that renders the join meeting dialog for visitors.
- *
- * @returns {JSX.Element}
- */
- export default function JoinMeetingDialog() {
- const { t } = useTranslation();
- const { classes } = useStyles();
-
- return (
- <Dialog
- cancel = {{ hidden: true }}
- ok = {{ translationKey: 'dialog.Ok' }}
- titleKey = 'visitors.joinMeeting.title'>
- <div className = 'join-meeting-dialog'>
- <p>{t('visitors.joinMeeting.description')}</p>
- <div className = { classes.raiseHand }>
- <p className = { classes.raiseHandTooltip }>{t('visitors.joinMeeting.raiseHand')}</p>
- <div className = { classes.raiseHandButton }>
- <ToolboxButtonWithPopup
- icon = { IconArrowUp }
- iconDisabled = { false }
- onPopoverClose = { noop }
- onPopoverOpen = { noop }
- popoverContent = { null }
- visible = { false }>
- {/* @ts-ignore */}
- <RaiseHandButton
- disableClick = { true }
- raisedHand = { true } />
- </ToolboxButtonWithPopup>
- </div>
- </div>
- <p>{t('visitors.joinMeeting.wishToSpeak')}</p>
- </div>
- </Dialog>
- );
- }
|