import { c } from "react-compiler-runtime";
import React from "react";
import { makeStyles } from "@material-ui/core";
//#region src/utilities/uploader/ImagePreview.jsx
const useStyles = makeStyles((theme) => ({
	root: {
		display: "flex",
		justifyContent: "center"
	},
	image: { maxWidth: 465 }
}));
const ImagePreview = (props) => {
	const $ = c(6);
	const { image } = props;
	const classes = useStyles();
	let t0;
	if ($[0] !== classes.image || $[1] !== image) {
		t0 = /* @__PURE__ */ React.createElement("img", {
			className: classes.image,
			src: image,
			alt: "upload preview"
		});
		$[0] = classes.image;
		$[1] = image;
		$[2] = t0;
	} else t0 = $[2];
	let t1;
	if ($[3] !== classes.root || $[4] !== t0) {
		t1 = /* @__PURE__ */ React.createElement("div", { className: classes.root }, t0);
		$[3] = classes.root;
		$[4] = t0;
		$[5] = t1;
	} else t1 = $[5];
	return t1;
};
//#endregion
export { ImagePreview as default };

//# sourceMappingURL=ImagePreview.mjs.map