import { useTeleporterStore } from "../../../../stores/teleporterStore.mjs";
import { c } from "react-compiler-runtime";
//#region src/UI/utilityDisplay/utilityHeader/ui/teleporter.ts
const useAllTeleporters = () => {
	const $ = c(2);
	const teleporterMap = useTeleporterStore(_temp);
	let result;
	if ($[0] !== teleporterMap) {
		result = [];
		for (const [targetId, locationMap] of teleporterMap.entries()) for (const [location, entry] of locationMap.entries()) result.push([
			targetId,
			location,
			entry.teleporter
		]);
		$[0] = teleporterMap;
		$[1] = result;
	} else result = $[1];
	return result;
};
function _temp(state) {
	return state.teleporterMap;
}
//#endregion
export { useAllTeleporters };

//# sourceMappingURL=teleporter.mjs.map