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

TestButton.js 657B

12345678910111213141516171819202122232425262728293031323334
  1. // @flow
  2. import React from 'react';
  3. type Props = {
  4. /**
  5. * Click handler for the button.
  6. */
  7. onClick: Function,
  8. /**
  9. * keypress handler for the button.
  10. */
  11. onKeyPress: Function,
  12. };
  13. /**
  14. * React {@code Component} representing an button used for testing output sound.
  15. *
  16. * @returns { ReactElement}
  17. */
  18. export default function TestButton({ onClick, onKeyPress }: Props) {
  19. return (
  20. <div
  21. className = 'audio-preview-test-button'
  22. onClick = { onClick }
  23. onKeyPress = { onKeyPress }
  24. role = 'button'
  25. tabIndex = { 0 }>
  26. Test
  27. </div>
  28. );
  29. }