import { RowContainer } from "../StandardContainer"; import { Stack, Typography } from "@mui/material"; import Image from "../Image"; import { useTheme } from "@mui/material/styles"; const InfoBox = ({ img, icon: Icon, alt, heading, headingLevel = 2, subHeading, subHeadingLevel = "", sx, }) => { const theme = useTheme(); return ( {img && ( {alt} )} {Icon && ( )} {heading} {subHeading} ); }; export default InfoBox;