import { FluentIconButton } from "./FluentIconButton.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
//#region src/UI/inputs/buttons/FluentUploadIconButton.jsx
const useStyles = makeStyles((theme) => ({
	root: { "& > *": { margin: theme.spacing(1) } },
	input: { display: "none" }
}));
const FluentUploadIconButton = (props) => {
	const $ = c(23);
	const classes = useStyles();
	const { color, icon, aria, accept, id, onChange, onClick } = props;
	let t0;
	if ($[0] !== accept || $[1] !== classes.input || $[2] !== id || $[3] !== onChange) {
		t0 = /* @__PURE__ */ React.createElement("input", {
			accept,
			className: classes.input,
			id,
			type: "file",
			onChange
		});
		$[0] = accept;
		$[1] = classes.input;
		$[2] = id;
		$[3] = onChange;
		$[4] = t0;
	} else t0 = $[4];
	let t1;
	if ($[5] !== aria || $[6] !== color || $[7] !== icon || $[8] !== id || $[9] !== onClick) {
		t1 = /* @__PURE__ */ React.createElement(FluentIconButton, {
			icon,
			color,
			"aria-label": aria,
			id,
			component: "span",
			onClick
		});
		$[5] = aria;
		$[6] = color;
		$[7] = icon;
		$[8] = id;
		$[9] = onClick;
		$[10] = t1;
	} else t1 = $[10];
	let t2;
	if ($[11] !== id || $[12] !== t1) {
		t2 = /* @__PURE__ */ React.createElement("label", { htmlFor: id }, t1);
		$[11] = id;
		$[12] = t1;
		$[13] = t2;
	} else t2 = $[13];
	let t3;
	if ($[14] !== accept || $[15] !== classes.input || $[16] !== id) {
		t3 = /* @__PURE__ */ React.createElement("input", {
			accept,
			className: classes.input,
			id,
			type: "file"
		});
		$[14] = accept;
		$[15] = classes.input;
		$[16] = id;
		$[17] = t3;
	} else t3 = $[17];
	let t4;
	if ($[18] !== classes.root || $[19] !== t0 || $[20] !== t2 || $[21] !== t3) {
		t4 = /* @__PURE__ */ React.createElement("div", { className: classes.root }, t0, t2, t3);
		$[18] = classes.root;
		$[19] = t0;
		$[20] = t2;
		$[21] = t3;
		$[22] = t4;
	} else t4 = $[22];
	return t4;
};
//#endregion
export { FluentUploadIconButton };

//# sourceMappingURL=FluentUploadIconButton.mjs.map