"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useActiveMapSubjectLayer = void 0;
var context_1 = require("../components/map-providers/context");
function useActiveMapSubjectLayer() {
    return (0, context_1.useAppState)(function (state) {
        var _a;
        if (state.config.activeMapName) {
            return (_a = state.mapState[state.config.activeMapName].generic) === null || _a === void 0 ? void 0 : _a.subject;
        }
        return undefined;
    });
}
exports.useActiveMapSubjectLayer = useActiveMapSubjectLayer;
//# sourceMappingURL=hooks-generic.js.map