Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
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.
jitsi-meet/react/features/base/toolbox/components/AbstractHangupButton.js

36 lines
750 B

// @flow
import AbstractButton from './AbstractButton';
import type { Props } from './AbstractButton';
/**
* An abstract implementation of a button for disconnecting a conference.
*/
export default class AbstractHangupButton<P : Props, S: *>
extends AbstractButton<P, S> {
accessibilityLabel = 'Hangup';
iconName = 'icon-hangup';
/**
* Handles clicking / pressing the button, and disconnects the conference.
*
* @private
* @returns {void}
*/
_handleClick() {
this._doHangup();
}
/**
* Helper function to perform the actual hangup action.
*
* @abstract
* @private
* @returns {void}
*/
_doHangup() {
// To be implemented by subclass.
}
}