mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
33 lines
701 B
TypeScript
33 lines
701 B
TypeScript
import { IconHangup } from '../../icons/svg';
|
|
|
|
import AbstractButton, { IProps } from './AbstractButton';
|
|
|
|
/**
|
|
* An abstract implementation of a button for disconnecting a conference.
|
|
*/
|
|
export default class AbstractHangupButton<P extends IProps, S>
|
|
extends AbstractButton<P, S> {
|
|
|
|
icon = IconHangup;
|
|
|
|
/**
|
|
* Handles clicking / pressing the button, and disconnects the conference.
|
|
*
|
|
* @protected
|
|
* @returns {void}
|
|
*/
|
|
_handleClick() {
|
|
this._doHangup();
|
|
}
|
|
|
|
/**
|
|
* Helper function to perform the actual hangup action.
|
|
*
|
|
* @protected
|
|
* @returns {void}
|
|
*/
|
|
_doHangup() {
|
|
// To be implemented by subclass.
|
|
}
|
|
}
|