import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import { noop } from 'foremanReact/common/helpers';
import ActivationKeys from './fields/ActivationKeys';
import LifecycleEnvironment from './fields/LifecycleEnvironment';
import IgnoreSubmanErrors from './fields/IgnoreSubmanErrors';
import Force from './fields/Force';
const RegistrationCommands = ({
organizationId,
hostGroupId,
pluginValues,
pluginData,
onChange,
handleInvalidField,
isLoading,
}) => {
useEffect(() => {
onChange({ activationKeys: [], lifecycleEnvironmentId: '' });
}, [onChange, organizationId, hostGroupId]);
return (
<>
>
);
};
RegistrationCommands.propTypes = {
organizationId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
hostGroupId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
pluginValues: PropTypes.object, // eslint-disable-line react/forbid-prop-types
pluginData: PropTypes.object, // eslint-disable-line react/forbid-prop-types
onChange: PropTypes.func,
handleInvalidField: PropTypes.func,
isLoading: PropTypes.bool,
};
RegistrationCommands.defaultProps = {
organizationId: undefined,
hostGroupId: undefined,
pluginValues: {},
pluginData: {},
isLoading: false,
onChange: noop,
handleInvalidField: noop,
};
export default RegistrationCommands;