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.

TestButton.js 465B

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