import { useMemo } from 'react';
import { useTeleporterStore } from '../../../../stores/teleporterStore';
export const useAllTeleporters = () => {
    const teleporterMap = useTeleporterStore((state) => state.teleporterMap);
    const allTeleporters = useMemo(() => {
        const result = [];
        for (const [targetId, locationMap] of teleporterMap.entries()) {
            for (const [location, entry] of locationMap.entries()) {
                result.push([targetId, location, entry.teleporter]);
            }
        }
        return result;
    }, [teleporterMap]);
    return allTeleporters;
};
//# sourceMappingURL=teleporter.js.map