snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
43
react/features/visitors/components/native/VisitorsQueue.tsx
Normal file
43
react/features/visitors/components/native/VisitorsQueue.tsx
Normal file
@@ -0,0 +1,43 @@
|
||||
import React, { useCallback } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Text, View, ViewStyle } from 'react-native';
|
||||
import { useDispatch } from 'react-redux';
|
||||
|
||||
import { hangup } from '../../../base/connection/actions.native';
|
||||
import LoadingIndicator from '../../../base/react/components/native/LoadingIndicator';
|
||||
import BaseTheme from '../../../base/ui/components/BaseTheme.native';
|
||||
import Button from '../../../base/ui/components/native/Button';
|
||||
import { BUTTON_TYPES } from '../../../base/ui/constants.any';
|
||||
import lobbyStyles from '../../../lobby/components/native/styles';
|
||||
|
||||
import styles from './styles';
|
||||
|
||||
/**
|
||||
* The component that renders visitors queue UI.
|
||||
*
|
||||
* @returns {ReactElement}
|
||||
*/
|
||||
export default function VisitorsQueue() {
|
||||
const { t } = useTranslation();
|
||||
const dispatch = useDispatch();
|
||||
const onHangupClick = useCallback(() => {
|
||||
dispatch(hangup());
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<View style = { styles.visitorsQueue as ViewStyle }>
|
||||
<Text style = { styles.visitorsQueueTitle }>
|
||||
{ t('visitors.waitingMessage') }
|
||||
</Text>
|
||||
<LoadingIndicator
|
||||
color = { BaseTheme.palette.icon01 }
|
||||
style = { lobbyStyles.loadingIndicator } />
|
||||
<Button
|
||||
accessibilityLabel = 'toolbar.accessibilityLabel.leaveConference'
|
||||
labelKey = 'toolbar.accessibilityLabel.leaveConference'
|
||||
onClick = { onHangupClick }
|
||||
style = { styles.hangupButton }
|
||||
type = { BUTTON_TYPES.DESTRUCTIVE } />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user