"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 ui_1 = require("../ui");
const use_translation_wrapper_1 = require("../../hooks/use-translation-wrapper");
const GROUP_NAME = 'imageType';
const DiscoveryImageTypeControlGroupLabel = ({ text, popoverContent, }) => (react_1.default.createElement(react_1.default.Fragment, null,
    text,
    " ",
    react_1.default.createElement(ui_1.PopoverIcon, { component: 'a', bodyContent: popoverContent, noVerticalAlign: true })));
const DiscoveryImageTypeControlGroup = () => {
    const { t } = (0, use_translation_wrapper_1.useTranslation)();
    return (react_1.default.createElement(react_core_1.Flex, null,
        react_1.default.createElement(react_core_1.FlexItem, { spacer: { default: 'spacer3xl' } },
            react_1.default.createElement(ui_1.RadioField, { name: GROUP_NAME, id: 'minimal-iso', value: 'minimal-iso', label: react_1.default.createElement(DiscoveryImageTypeControlGroupLabel, { text: t('ai:Minimal image file'), popoverContent: t("ai:Recommended option. The generated discovery ISO will be smaller, but will need to download additional data during boot. This option is useful if ISO storage capacity is limited or if it's being served over a constrained network.") }) })),
        react_1.default.createElement(react_core_1.FlexItem, null,
            react_1.default.createElement(ui_1.RadioField, { name: GROUP_NAME, id: 'full-iso', value: 'full-iso', label: react_1.default.createElement(DiscoveryImageTypeControlGroupLabel, { text: t('ai:Full image file'), popoverContent: t('ai:The generated discovery ISO will contain everything needed to boot.') }) }))));
};
exports.default = DiscoveryImageTypeControlGroup;
//# sourceMappingURL=DiscoveryImageTypeControlGroup.js.map