import { Stack, Typography } from "@mui/material"; import { useTheme } from "@emotion/react"; import IconBox from "../../IconBox"; import PropTypes from "prop-types"; const LegendBox = ({ children, icon, header, sx }) => { const theme = useTheme(); return ( {icon} {header} {children} ); }; LegendBox.propTypes = { children: PropTypes.node, icon: PropTypes.node, header: PropTypes.string, }; export default LegendBox;