2022-09-13 07:36:00 +00:00
|
|
|
import { Theme } from '@mui/material';
|
2021-04-21 13:48:05 +00:00
|
|
|
import React from 'react';
|
2022-09-13 07:36:00 +00:00
|
|
|
import { makeStyles } from 'tss-react/mui';
|
2021-04-21 13:48:05 +00:00
|
|
|
|
2022-08-25 11:35:19 +00:00
|
|
|
import Icon from '../../../base/icons/components/Icon';
|
2022-09-06 17:32:20 +00:00
|
|
|
import { IconRaisedHandHollow } from '../../../base/icons/svg';
|
2021-04-21 13:48:05 +00:00
|
|
|
|
2022-09-13 07:36:00 +00:00
|
|
|
const useStyles = makeStyles()((theme: Theme) => {
|
2021-10-22 13:23:52 +00:00
|
|
|
return {
|
|
|
|
indicator: {
|
2021-12-20 08:44:22 +00:00
|
|
|
backgroundColor: theme.palette.warning02,
|
2022-09-13 07:36:00 +00:00
|
|
|
borderRadius: `${Number(theme.shape.borderRadius) / 2}px`,
|
2021-10-22 13:23:52 +00:00
|
|
|
height: '24px',
|
|
|
|
width: '24px'
|
|
|
|
}
|
|
|
|
};
|
|
|
|
});
|
2021-04-21 13:48:05 +00:00
|
|
|
|
2021-10-22 13:23:52 +00:00
|
|
|
export const RaisedHandIndicator = () => {
|
2022-09-13 07:36:00 +00:00
|
|
|
const { classes: styles, theme } = useStyles();
|
2021-10-22 13:23:52 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div className = { styles.indicator }>
|
|
|
|
<Icon
|
2022-09-13 07:36:00 +00:00
|
|
|
color = { theme.palette.uiBackground }
|
2021-12-20 08:44:22 +00:00
|
|
|
size = { 16 }
|
2021-10-22 13:23:52 +00:00
|
|
|
src = { IconRaisedHandHollow } />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|