import React from 'react'; import PropTypes from 'prop-types'; import { FieldLevelHelp } from 'patternfly-react'; import { translate as __ } from 'foremanReact/common/I18n'; import TextButtonField from './TextButtonField'; import ButtonTooltip from './ButtonTooltip'; const SyncSettingField = ({ setting, resetField, disabled, syncType }) => { const label = settingObj => `${__(settingObj.fullName)} `; const fieldSelector = settingObj => { if (settingObj.settingsType === 'boolean') { return 'checkbox'; } if (settingObj.selection.length !== 0) { return 'select'; } return 'text'; }; const tooltipContent = (
); return (