| 12345678910111213141516171819202122232425262728 | // @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');
        window.close();
    }
}
 |