import React from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import { foremanUrl } from '../../../../../../ForemanRhCloudHelpers'; const Toast = ({ syncHosts, disconnectHosts }) => { const totalHosts = syncHosts + disconnectHosts; return (

{__('Hosts with subscription in organization: ')} {totalHosts}

{__('Successfully synced hosts: ')} {syncHosts}

{__('Disconnected hosts: ')} {disconnectHosts}

For more info, please visit the{' '} hosts page

); }; Toast.propTypes = { syncHosts: PropTypes.number.isRequired, disconnectHosts: PropTypes.number.isRequired, }; export default Toast;