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

AudioSettingsHeader.js 913B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // @flow
  2. import React from 'react';
  3. import { Icon } from '../../../../base/icons';
  4. /**
  5. * The type of the React {@code Component} props of {@link AudioSettingsHeader}.
  6. */
  7. type Props = {
  8. /**
  9. * The Icon used for the Header.
  10. */
  11. IconComponent: Function,
  12. /**
  13. * The text of the Header.
  14. */
  15. text: string,
  16. };
  17. /**
  18. * React {@code Component} representing the Header of an audio option group.
  19. *
  20. * @returns { ReactElement}
  21. */
  22. export default function AudioSettingsHeader({ IconComponent, text }: Props) {
  23. return (
  24. <div className = 'audio-preview-header'>
  25. <div className = 'audio-preview-header-icon'>
  26. { <Icon
  27. color = '#A4B8D1'
  28. size = { 24 }
  29. src = { IconComponent } />}
  30. </div>
  31. <div className = 'audio-preview-header-text'>{text}</div>
  32. </div>
  33. );
  34. }