"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const react_core_1 = require("@patternfly/react-core");
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
const DeleteHostModal = ({ isOpen, hostname, onClose, onDelete }) => {
    const { t } = (0, use_translation_wrapper_1.useTranslation)();
    return (react_1.default.createElement(react_core_1.Modal, { title: t('ai:Remove host?'), isOpen: isOpen, onClose: onClose, variant: react_core_1.ModalVariant.small },
        react_1.default.createElement(react_core_1.ModalHeader, { title: t('ai:Remove host?'), titleIconVariant: "warning" }),
        react_1.default.createElement(react_core_1.ModalBody, null, t('ai:Host {{hostname}} will be removed', { hostname: hostname || '' })),
        react_1.default.createElement(react_core_1.ModalFooter, null,
            react_1.default.createElement(react_core_1.Button, { "data-testid": "delete-host-submit", key: "confirm", variant: react_core_1.ButtonVariant.danger, onClick: onDelete }, t('ai:Remove host')),
            react_1.default.createElement(react_core_1.Button, { key: "cancel", variant: react_core_1.ButtonVariant.link, onClick: onClose }, t('ai:Cancel')))));
};
exports.default = DeleteHostModal;
//# sourceMappingURL=DeleteHostModal.js.map