Files
upstream-jitsi-meet/react/features/speaker-stats/components/web/SpeakerStatsLabels.tsx
upstream-mirror 1d2bfcac0c
Some checks failed
Prosody Plugin Tests / test (push) Failing after 10m11s
Close stale issues and PRs / stale (push) Failing after 1s
snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
2026-09-15 15:56:32 +05:00

57 lines
1.4 KiB
TypeScript

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;