您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }