import React from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import SwitcherPF4 from '../../../common/Switcher/SwitcherPF4'; const HostObfuscationSwitcher = ({ hostObfuscationEnabled, handleToggle }) => (
handleToggle(hostObfuscationEnabled)} />
); HostObfuscationSwitcher.propTypes = { hostObfuscationEnabled: PropTypes.bool, handleToggle: PropTypes.func.isRequired, }; HostObfuscationSwitcher.defaultProps = { hostObfuscationEnabled: false, }; export default HostObfuscationSwitcher;