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.

AbstractHangupButton.ts 705B

1234567891011121314151617181920212223242526272829303132
  1. import { IconHangup } from '../../icons/svg';
  2. import AbstractButton, { IProps } from './AbstractButton';
  3. /**
  4. * An abstract implementation of a button for disconnecting a conference.
  5. */
  6. export default class AbstractHangupButton<P extends IProps, S=any>
  7. extends AbstractButton<P, S> {
  8. icon = IconHangup;
  9. /**
  10. * Handles clicking / pressing the button, and disconnects the conference.
  11. *
  12. * @protected
  13. * @returns {void}
  14. */
  15. _handleClick() {
  16. this._doHangup();
  17. }
  18. /**
  19. * Helper function to perform the actual hangup action.
  20. *
  21. * @protected
  22. * @returns {void}
  23. */
  24. _doHangup() {
  25. // To be implemented by subclass.
  26. }
  27. }