import { FluentIconButton } from "../../../UI/inputs/buttons/FluentIconButton.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
import { Divider, Tooltip, makeStyles } from "@material-ui/core";
import { MapPinIcon } from "@fluentui/react-icons";
//#region src/maps/openLayerMaps/ui/LocationPin.jsx
const useStyles = makeStyles((theme) => ({ divider: {
	marginRight: theme.spacing(2),
	marginLeft: theme.spacing(2)
} }));
const LocationPin = (props) => {
	const $ = c(12);
	const { getLocation, location, tooltip } = props;
	const classes = useStyles();
	let t0;
	if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
		t0 = /* @__PURE__ */ React.createElement(Divider, { orientation: "vertical" });
		$[0] = t0;
	} else t0 = $[0];
	let t1;
	if ($[1] !== classes.divider) {
		t1 = /* @__PURE__ */ React.createElement("div", { className: classes.divider }, t0);
		$[1] = classes.divider;
		$[2] = t1;
	} else t1 = $[2];
	let t2;
	if ($[3] !== getLocation || $[4] !== location) {
		t2 = /* @__PURE__ */ React.createElement(FluentIconButton, {
			onClick: () => getLocation(location),
			color: "primary",
			icon: MapPinIcon
		});
		$[3] = getLocation;
		$[4] = location;
		$[5] = t2;
	} else t2 = $[5];
	let t3;
	if ($[6] !== t2 || $[7] !== tooltip) {
		t3 = /* @__PURE__ */ React.createElement(Tooltip, {
			arrow: true,
			title: tooltip
		}, t2);
		$[6] = t2;
		$[7] = tooltip;
		$[8] = t3;
	} else t3 = $[8];
	let t4;
	if ($[9] !== t1 || $[10] !== t3) {
		t4 = /* @__PURE__ */ React.createElement("div", null, t1, t3);
		$[9] = t1;
		$[10] = t3;
		$[11] = t4;
	} else t4 = $[11];
	return t4;
};
//#endregion
export { LocationPin as default };

//# sourceMappingURL=LocationPin.mjs.map