"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ActiveAlertsPanel = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const AdaptableContext_1 = require("../AdaptableContext");
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
const AdaptableObjectCompactList_1 = require("../Components/AdaptableObjectList/AdaptableObjectCompactList");
const react_redux_1 = require("react-redux");
const ActiveAlertsPanel = () => {
    const adaptable = (0, AdaptableContext_1.useAdaptable)();
    const filterModule = adaptable.ModuleService.getModuleById(ModuleConstants.AlertModuleId);
    const alerts = (0, react_redux_1.useSelector)((state) => state.Internal.AdaptableAlerts);
    return React.createElement(AdaptableObjectCompactList_1.AdaptableObjectCompactList, { abObjects: alerts, module: filterModule });
};
exports.ActiveAlertsPanel = ActiveAlertsPanel;
