snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
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=any>
|
||||
extends AbstractButton<P, S> {
|
||||
|
||||
override icon = IconHangup;
|
||||
|
||||
/**
|
||||
* Handles clicking / pressing the button, and disconnects the conference.
|
||||
*
|
||||
* @protected
|
||||
* @returns {void}
|
||||
*/
|
||||
override _handleClick() {
|
||||
this._doHangup();
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function to perform the actual hangup action.
|
||||
*
|
||||
* @protected
|
||||
* @returns {void}
|
||||
*/
|
||||
_doHangup() {
|
||||
// To be implemented by subclass.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user