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

//# sourceMappingURL=FluentUploadButton.mjs.map