Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
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.
 
 
 
 
 
 
jitsi-meet/react/features/settings/components/web/audio/AudioSettingsHeader.js

48 lines
1.0 KiB

// @flow
import React from 'react';
import { Icon } from '../../../../base/icons';
/**
* The type of the React {@code Component} props of {@link AudioSettingsHeader}.
*/
type Props = {
/**
* The id used for the Header-text.
*/
id?: string,
/**
* The Icon used for the Header.
*/
IconComponent: Function,
/**
* The text of the Header.
*/
text: string,
};
/**
* React {@code Component} representing the Header of an audio option group.
*
* @returns { ReactElement}
*/
export default function AudioSettingsHeader({ IconComponent, id, text }: Props) {
return (
<div
className = 'audio-preview-header'
role = 'heading'>
<div className = 'audio-preview-header-icon'>
{ <Icon
size = { 20 }
src = { IconComponent } />}
</div>
<div
className = 'audio-preview-header-text'
id = { id } >{text}</div>
</div>
);
}