import FileProfile from "./FileProfile.mjs";
import ImagePreview from "./ImagePreview.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
//#region src/utilities/uploader/FileType.jsx
const FileType = (props) => {
	const $ = c(34);
	let type = "";
	const { fileType, image, fileName, size, lastModifiedDate } = props;
	bb0: switch (fileType) {
		case "pdf": {
			let t0;
			if ($[0] !== fileName || $[1] !== fileType || $[2] !== lastModifiedDate || $[3] !== size) {
				t0 = /* @__PURE__ */ React.createElement(FileProfile, {
					fileType,
					fileName,
					size,
					lastModifiedDate
				});
				$[0] = fileName;
				$[1] = fileType;
				$[2] = lastModifiedDate;
				$[3] = size;
				$[4] = t0;
			} else t0 = $[4];
			type = t0;
			break bb0;
		}
		case "doc": {
			let t0;
			if ($[5] !== fileName || $[6] !== fileType || $[7] !== lastModifiedDate || $[8] !== size) {
				t0 = /* @__PURE__ */ React.createElement(FileProfile, {
					fileType,
					fileName,
					size,
					lastModifiedDate
				});
				$[5] = fileName;
				$[6] = fileType;
				$[7] = lastModifiedDate;
				$[8] = size;
				$[9] = t0;
			} else t0 = $[9];
			type = t0;
			break bb0;
		}
		case "png": {
			let t0;
			if ($[10] !== image) {
				t0 = /* @__PURE__ */ React.createElement(ImagePreview, { image });
				$[10] = image;
				$[11] = t0;
			} else t0 = $[11];
			let t1;
			if ($[12] !== fileName || $[13] !== fileType || $[14] !== lastModifiedDate || $[15] !== size || $[16] !== t0) {
				t1 = /* @__PURE__ */ React.createElement(FileProfile, {
					fileType,
					fileName,
					size,
					lastModifiedDate
				}, t0);
				$[12] = fileName;
				$[13] = fileType;
				$[14] = lastModifiedDate;
				$[15] = size;
				$[16] = t0;
				$[17] = t1;
			} else t1 = $[17];
			type = t1;
			break bb0;
		}
		case "jpg": {
			let t0;
			if ($[18] !== image) {
				t0 = /* @__PURE__ */ React.createElement(ImagePreview, { image });
				$[18] = image;
				$[19] = t0;
			} else t0 = $[19];
			let t1;
			if ($[20] !== fileName || $[21] !== fileType || $[22] !== lastModifiedDate || $[23] !== size || $[24] !== t0) {
				t1 = /* @__PURE__ */ React.createElement(FileProfile, {
					fileType,
					fileName,
					size,
					lastModifiedDate
				}, t0);
				$[20] = fileName;
				$[21] = fileType;
				$[22] = lastModifiedDate;
				$[23] = size;
				$[24] = t0;
				$[25] = t1;
			} else t1 = $[25];
			type = t1;
			break bb0;
		}
		case "jpeg": {
			let t0;
			if ($[26] !== image) {
				t0 = /* @__PURE__ */ React.createElement(ImagePreview, { image });
				$[26] = image;
				$[27] = t0;
			} else t0 = $[27];
			let t1;
			if ($[28] !== fileName || $[29] !== fileType || $[30] !== lastModifiedDate || $[31] !== size || $[32] !== t0) {
				t1 = /* @__PURE__ */ React.createElement(FileProfile, {
					fileType,
					fileName,
					size,
					lastModifiedDate
				}, t0);
				$[28] = fileName;
				$[29] = fileType;
				$[30] = lastModifiedDate;
				$[31] = size;
				$[32] = t0;
				$[33] = t1;
			} else t1 = $[33];
			type = t1;
			break bb0;
		}
		default:
	}
	return type;
};
//#endregion
export { FileType };

//# sourceMappingURL=FileType.mjs.map