jiti-meet/react/features/base/toolbox/components/AbstractHangupButton.js

36 lines
738 B
JavaScript
Raw Normal View History

// @flow
2019-08-30 16:39:06 +00:00
import { IconHangup } from '../../icons';
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> {
2019-08-30 16:39:06 +00:00
icon = IconHangup;
/**
* Handles clicking / pressing the button, and disconnects the conference.
*
2018-05-11 02:10:26 +00:00
* @protected
* @returns {void}
*/
_handleClick() {
this._doHangup();
}
/**
* Helper function to perform the actual hangup action.
*
2018-05-11 02:10:26 +00:00
* @protected
* @returns {void}
*/
_doHangup() {
// To be implemented by subclass.
}
}