lamassu-server/new-lamassu-admin/src/pages/Analytics/components/LegendEntry.jsx
2025-04-22 13:11:45 +01:00

21 lines
505 B
JavaScript

import { makeStyles } from '@mui/styles'
import React from 'react'
import { P } from 'src/components/typography'
import styles from '../Analytics.styles'
const useStyles = makeStyles(styles)
const LegendEntry = ({ IconElement, IconComponent, label }) => {
const classes = useStyles()
return (
<span className={classes.legendEntry}>
{!!IconComponent && <IconComponent height={12} />}
{!!IconElement && IconElement}
<P>{label}</P>
</span>
)
}
export default LegendEntry