jiti-meet/react/features/always-on-top/HangupButton.js

28 lines
740 B
JavaScript

// @flow
// We need to reference these files directly to avoid loading things that are not available
// in this environment (e.g. JitsiMeetJS or interfaceConfig)
import type { Props } from '../base/toolbox/components/AbstractButton';
import AbstractHangupButton from '../base/toolbox/components/AbstractHangupButton';
const { api } = window.alwaysOnTop;
/**
* Stateless hangup button for the Always-on-Top windows.
*/
export default class HangupButton extends AbstractHangupButton<Props, *> {
accessibilityLabel = 'Hangup';
/**
* Helper function to perform the actual hangup action.
*
* @override
* @protected
* @returns {void}
*/
_doHangup() {
api.executeCommand('hangup');
}
}