diff --git a/Client/src/Components/Image/index.jsx b/Client/src/Components/Image/index.jsx index 9304a4385..8f30f8a9e 100644 --- a/Client/src/Components/Image/index.jsx +++ b/Client/src/Components/Image/index.jsx @@ -11,9 +11,12 @@ const Image = ({ alt, width = "auto", height = "auto", + minWidth = "auto", + minHeight = "auto", maxWidth = "auto", maxHeight = "auto", base64, + placeholder, sx, }) => { if (shouldRender === false) { @@ -28,11 +31,21 @@ const Image = ({ src = `data:image/png;base64,${base64}`; } + if ( + typeof src === "undefined" && + typeof base64 === "undefined" && + typeof placeholder !== "undefined" + ) { + src = placeholder; + } + return (