refactor public status page

This commit is contained in:
Alex Holliday committed 2025-02-04 13:06:42 -08:00
1 parent cc8d4bc98c
commit dc3fc7628a
15 files changed
+605 -53

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
import { Box } from "@mui/material";
import PropTypes from "prop-types";
const Image = ({
src,
alt,
width = "auto",
height = "auto",
maxWidth = "auto",
maxHeight = "auto",
}) => {
return (
<Box
component="img"
src={src}
alt={alt}
maxWidth={maxWidth}
maxHeight={maxHeight}
width={width}
height={height}
/>
);
};
Image.propTypes = {
src: PropTypes.string,
alt: PropTypes.string.isRequired,
width: PropTypes.string,
height: PropTypes.string,
};
export default Image;