import { c } from "react-compiler-runtime";
import React, { Fragment } from "react";
import { Typography, makeStyles } from "@material-ui/core";
//#region src/utilities/uploader/FileProfile.jsx
const useStyles = makeStyles((theme) => ({
	root: {
		display: "flex",
		flexDirection: "row"
	},
	prefix: { fontWeight: 600 },
	title: { flex: 1 },
	detail: { marginLeft: theme.spacing(2) }
}));
const FileProfile = (props) => {
	const $ = c(31);
	const classes = useStyles();
	const { children, fileName, fileType, size, lastModifiedDate } = props;
	let t0;
	if ($[0] !== fileName) {
		t0 = /* @__PURE__ */ React.createElement("strong", null, fileName);
		$[0] = fileName;
		$[1] = t0;
	} else t0 = $[1];
	let t1;
	if ($[2] !== classes.title || $[3] !== t0) {
		t1 = /* @__PURE__ */ React.createElement(Typography, {
			variant: "body1",
			className: classes.title
		}, t0);
		$[2] = classes.title;
		$[3] = t0;
		$[4] = t1;
	} else t1 = $[4];
	let t2;
	if ($[5] !== classes.prefix) {
		t2 = /* @__PURE__ */ React.createElement("span", { className: classes.prefix }, "Type:");
		$[5] = classes.prefix;
		$[6] = t2;
	} else t2 = $[6];
	let t3;
	if ($[7] !== classes.detail || $[8] !== fileType || $[9] !== t2) {
		t3 = /* @__PURE__ */ React.createElement(Typography, {
			variant: "caption",
			className: classes.detail
		}, t2, " ", fileType);
		$[7] = classes.detail;
		$[8] = fileType;
		$[9] = t2;
		$[10] = t3;
	} else t3 = $[10];
	let t4;
	if ($[11] !== classes.prefix) {
		t4 = /* @__PURE__ */ React.createElement("span", { className: classes.prefix }, "Size:");
		$[11] = classes.prefix;
		$[12] = t4;
	} else t4 = $[12];
	let t5;
	if ($[13] !== classes.detail || $[14] !== size || $[15] !== t4) {
		t5 = /* @__PURE__ */ React.createElement(Typography, {
			variant: "caption",
			className: classes.detail
		}, t4, " ", size);
		$[13] = classes.detail;
		$[14] = size;
		$[15] = t4;
		$[16] = t5;
	} else t5 = $[16];
	let t6;
	if ($[17] !== classes.root || $[18] !== t1 || $[19] !== t3 || $[20] !== t5) {
		t6 = /* @__PURE__ */ React.createElement("div", { className: classes.root }, t1, t3, t5);
		$[17] = classes.root;
		$[18] = t1;
		$[19] = t3;
		$[20] = t5;
		$[21] = t6;
	} else t6 = $[21];
	let t7;
	if ($[22] !== classes.prefix) {
		t7 = /* @__PURE__ */ React.createElement("span", { className: classes.prefix }, "Last Modified:");
		$[22] = classes.prefix;
		$[23] = t7;
	} else t7 = $[23];
	let t8;
	if ($[24] !== lastModifiedDate || $[25] !== t7) {
		t8 = /* @__PURE__ */ React.createElement(Typography, { variant: "caption" }, t7, " ", lastModifiedDate);
		$[24] = lastModifiedDate;
		$[25] = t7;
		$[26] = t8;
	} else t8 = $[26];
	let t9;
	if ($[27] !== children || $[28] !== t6 || $[29] !== t8) {
		t9 = /* @__PURE__ */ React.createElement(Fragment, null, t6, children, t8);
		$[27] = children;
		$[28] = t6;
		$[29] = t8;
		$[30] = t9;
	} else t9 = $[30];
	return t9;
};
//#endregion
export { FileProfile as default };

//# sourceMappingURL=FileProfile.mjs.map