import { fluentLibraryIcons } from "../assets/unityIcons/LibraryData.mjs";
import { c } from "react-compiler-runtime";
import "react";
//#region src/hooks/useFluentIcon.js
const useFluentIcon = (iconName) => {
	const $ = c(4);
	let t0;
	bb0: {
		if (!iconName || iconName === "none") {
			t0 = null;
			break bb0;
		}
		let t1;
		if ($[0] !== iconName) {
			t1 = fluentLibraryIcons.find((item) => item.id.toLowerCase().includes(iconName.toLowerCase()));
			$[0] = iconName;
			$[1] = t1;
		} else t1 = $[1];
		t0 = t1?.icon || null;
	}
	const icon = t0;
	let t1;
	if ($[2] !== icon) {
		t1 = { icon };
		$[2] = icon;
		$[3] = t1;
	} else t1 = $[3];
	return t1;
};
//#endregion
export { useFluentIcon };

//# sourceMappingURL=useFluentIcon.mjs.map