snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { makeStyles } from 'tss-react/mui';
|
||||
|
||||
import TimelineAxis from './TimelineAxis';
|
||||
|
||||
const useStyles = makeStyles()(theme => {
|
||||
return {
|
||||
labels: {
|
||||
padding: '22px 0 7px 0',
|
||||
height: 20,
|
||||
'& .avatar-placeholder': {
|
||||
width: '32px',
|
||||
marginRight: theme.spacing(3)
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
/**
|
||||
* The type of the React {@code Component} props of {@link SpeakerStatsLabels}.
|
||||
*/
|
||||
interface IProps {
|
||||
|
||||
/**
|
||||
* True if the face expressions detection is not disabled.
|
||||
*/
|
||||
showFaceExpressions: boolean;
|
||||
}
|
||||
|
||||
const SpeakerStatsLabels = (props: IProps) => {
|
||||
const { t } = useTranslation();
|
||||
const { classes } = useStyles();
|
||||
const nameTimeClass = `name-time${
|
||||
props.showFaceExpressions ? ' expressions-on' : ''
|
||||
}`;
|
||||
|
||||
return (
|
||||
<div className = { `row ${classes.labels}` }>
|
||||
<div className = 'avatar-placeholder' />
|
||||
|
||||
<div className = { nameTimeClass }>
|
||||
<div>
|
||||
{ t('speakerStats.name') }
|
||||
</div>
|
||||
<div>
|
||||
{ t('speakerStats.speakerTime') }
|
||||
</div>
|
||||
</div>
|
||||
{props.showFaceExpressions && <TimelineAxis />}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default SpeakerStatsLabels;
|
||||
Reference in New Issue
Block a user