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

AbstractHangupButton.js 738B

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