import React from 'react'; import PropTypes from 'prop-types'; import { Switch, FieldLevelHelp } from 'patternfly-react'; import { translate as __ } from 'foremanReact/common/I18n'; import './autoUploadSwitcher.scss'; const AutoUploadSwitcher = ({ autoUploadEnabled, handleToggle }) => (
handleToggle(autoUploadEnabled)} /> Allow Auto Upload
); AutoUploadSwitcher.propTypes = { autoUploadEnabled: PropTypes.bool, handleToggle: PropTypes.func.isRequired, }; AutoUploadSwitcher.defaultProps = { autoUploadEnabled: true, }; export default AutoUploadSwitcher;