mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-11 17:52:32 +00:00
* Make Jitsi WCAG 2.1 compliant * Fixed password form keypress handling * Added keypress handler to name form * Removed unneccessary dom query * Fixed mouse hove style * Removed obsolete css rules * accessibilty background feature * Merge remote-tracking branch 'upstream/master' into nic/fix/merge-conflicts * fix error * add german translation * Fixed merge issue * Add id prop back to device selection * Fixed lockfile Co-authored-by: AHMAD KADRI <52747422+ahmadkadri@users.noreply.github.com>
49 lines
1.0 KiB
JavaScript
49 lines
1.0 KiB
JavaScript
// @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>
|
|
);
|
|
}
|