import { IconButtonWithTooltip } from "../../inputs/buttons/IconButtonWithToolTip.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { ViewIcon } from "@fluentui/react-icons";
import { useTranslation } from "react-i18next";
//#region src/UI/mapLayout/ui/ActionsRenderer.jsx
const ActionsRenderer = (props) => {
	const $ = c(7);
	const { openView, data, node } = props;
	const { t } = useTranslation();
	let t0;
	if ($[0] !== data || $[1] !== node?.group || $[2] !== openView || $[3] !== t) {
		t0 = openView && !node?.group && /* @__PURE__ */ React.createElement(IconButtonWithTooltip, {
			title: t("View"),
			size: "small",
			onClick: () => {
				openView(data);
			},
			icon: ViewIcon
		});
		$[0] = data;
		$[1] = node?.group;
		$[2] = openView;
		$[3] = t;
		$[4] = t0;
	} else t0 = $[4];
	let t1;
	if ($[5] !== t0) {
		t1 = /* @__PURE__ */ React.createElement("div", null, t0);
		$[5] = t0;
		$[6] = t1;
	} else t1 = $[6];
	return t1;
};
//#endregion
export { ActionsRenderer as default };

//# sourceMappingURL=ActionsRenderer.mjs.map