"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const react_core_1 = require("@patternfly/react-core");
const React = tslib_1.__importStar(require("react"));
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
const SpecSyncErrAlert = ({ agent }) => {
    var _a, _b, _c;
    const { t } = (0, use_translation_wrapper_1.useTranslation)();
    return (React.createElement(react_core_1.Alert, { variant: "danger", isInline: true, title: t('ai:Host specification sync error') }, (_c = (_b = (_a = agent.status) === null || _a === void 0 ? void 0 : _a.conditions) === null || _b === void 0 ? void 0 : _b.find((c) => c.type === 'SpecSynced')) === null || _c === void 0 ? void 0 : _c.message));
};
exports.default = SpecSyncErrAlert;
//# sourceMappingURL=SpecSyncErrAlert.js.map