Some checks failed
Close stale issues and PRs / stale (push) Has been cancelled
37 lines
975 B
TypeScript
37 lines
975 B
TypeScript
import React from 'react';
|
|
import { makeStyles } from 'tss-react/mui';
|
|
|
|
import { IDisplayProps } from '../ConferenceTimer';
|
|
|
|
const useStyles = makeStyles()(theme => {
|
|
return {
|
|
timer: {
|
|
...theme.typography.labelRegular,
|
|
color: theme.palette.text01,
|
|
padding: '6px 8px',
|
|
backgroundColor: 'rgba(0, 0, 0, 0.8)',
|
|
boxSizing: 'border-box',
|
|
height: '28px',
|
|
borderRadius: `0 ${theme.shape.borderRadius}px ${theme.shape.borderRadius}px 0`,
|
|
marginRight: '2px',
|
|
|
|
'@media (max-width: 300px)': {
|
|
display: 'none'
|
|
}
|
|
}
|
|
};
|
|
});
|
|
|
|
/**
|
|
* Returns web element to be rendered.
|
|
*
|
|
* @returns {ReactElement}
|
|
*/
|
|
export default function ConferenceTimerDisplay({ timerValue, textStyle: _textStyle }: IDisplayProps) {
|
|
const { classes } = useStyles();
|
|
|
|
return (
|
|
<span className = { classes.timer }>{ timerValue }</span>
|
|
);
|
|
}
|