import React from 'react';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import LabelIcon from 'foremanReact/components/common/LabelIcon';
import {
FormGroup,
FormSelectOption,
FormSelect,
} from '@patternfly/react-core';
const options = (value = '') => {
const defaultValue = value ? __('yes') : __('no');
const defaultLabel = `${__('Inherit from host parameter')} (${defaultValue})`;
return (
<>
>
);
};
const RexPull = ({ isLoading, onChange, pluginValues, configParams }) => (
}
fieldId="registration_setup_remote_execution_pull"
>
onChange({ setupRemoteExecutionPull })
}
className="without_select2"
id="registration_setup_remote_execution_pull"
isDisabled={isLoading}
isRequired
>
{/* eslint-disable-next-line camelcase */
options(configParams?.host_registration_remote_execution_pull)}
);
RexPull.propTypes = {
onChange: PropTypes.func,
isLoading: PropTypes.bool,
pluginValues: PropTypes.shape({
setupRemoteExecutionPull: PropTypes.bool,
}),
configParams: PropTypes.shape({
host_registration_remote_execution_pull: PropTypes.bool,
}),
};
RexPull.defaultProps = {
onChange: undefined,
isLoading: false,
pluginValues: {},
configParams: {},
};
export default RexPull;