import Icon from '@mui/material/Icon'; import { Box, Typography, styled } from '@mui/material'; import { useId } from 'hooks/useId'; import { ScreenReaderOnly } from 'component/common/ScreenReaderOnly/ScreenReaderOnly'; import { HelpIcon } from 'component/common/HelpIcon/HelpIcon'; import InfoOutlined from '@mui/icons-material/InfoOutlined'; const StyledRingContainer = styled(Box)(({ theme }) => ({ display: 'flex', alignItems: 'center', justifyContent: 'center', })); const StyledRing = styled(Box)(({ theme }) => ({ borderRadius: '50%', width: '200px', height: '200px', border: `10px solid ${theme.palette.secondary.border}`, display: 'flex', alignItems: 'center', justifyContent: 'center', })); const StyledRingContent = styled(Box)(({ theme }) => ({ borderRadius: '50%', width: '180px', height: '180px', backgroundColor: theme.palette.secondary.light, display: 'flex', alignItems: 'center', justifyContent: 'center', fontWeight: 'bold', fontSize: theme.fontSizes.extraLargeHeader, border: `10px solid ${theme.palette.background.paper}`, })); const StyledInsightsContainer = styled(Box)(({ theme }) => ({ marginTop: theme.spacing(4), padding: theme.spacing(1.5, 2), background: theme.palette.background.elevation2, borderRadius: `${theme.shape.borderRadiusMedium}px`, display: 'flex', alignItems: 'center', })); const StyledHeaderContainer = styled(Box)(({ theme }) => ({ display: 'flex', alignItems: 'center', marginBottom: theme.spacing(0.5), })); const StyledTextContainer = styled(Box)(({ theme }) => ({ display: 'flex', flexDirection: 'column', alignItems: 'flex-start', })); const StyledFlagCountPerUser = styled(Typography)(({ theme }) => ({ marginLeft: 'auto', fontSize: theme.fontSizes.mainHeader, })); const StyledIcon = styled(Icon)(({ theme }) => ({ color: theme.palette.primary.main, width: '15px', height: '15px', marginRight: theme.spacing(0.5), fontSize: '15px!important', })); const LabelContainer = styled('div')({ display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'center', }); interface IFlagStatsProps { count: number; isLoading?: boolean; } export const FlagStats: React.FC = ({ count, isLoading }) => { const labelId = useId(); const descriptionId = useId(); return ( <> {isLoading ? ( Loading total flag count ) : ( count )} Total number of flags ); };