import { useTeleporterStore } from "../../../../stores/teleporterStore.mjs";
import { c } from "react-compiler-runtime";
import React from "react";
//#region src/UI/utilityDisplay/utilityHeader/ui/TeleporterSource.tsx
const TeleportSource = (t0) => {
	const $ = c(7);
	const { targetId, location, children } = t0;
	const getTeleporter = useTeleporterStore(_temp);
	let t1;
	if ($[0] !== getTeleporter || $[1] !== location || $[2] !== targetId) {
		t1 = getTeleporter(targetId, location);
		$[0] = getTeleporter;
		$[1] = location;
		$[2] = targetId;
		$[3] = t1;
	} else t1 = $[3];
	const Teleporter = t1.Source;
	let t2;
	if ($[4] !== Teleporter || $[5] !== children) {
		t2 = /* @__PURE__ */ React.createElement(Teleporter, { children });
		$[4] = Teleporter;
		$[5] = children;
		$[6] = t2;
	} else t2 = $[6];
	return t2;
};
function _temp(state) {
	return state.getTeleporter;
}
//#endregion
export { TeleportSource };

//# sourceMappingURL=TeleporterSource.mjs.map