import React from 'react'; import { Trans } from 'react-i18next'; import { shallowEqual, useDispatch, useSelector } from 'react-redux'; import Topline from './Topline'; import { getUpdate } from '../../actions'; import { MANUAL_UPDATE_LINK } from '../../helpers/constants'; const UpdateTopline = () => { const { announcementUrl, newVersion, canAutoUpdate, processingUpdate, } = useSelector((state) => state.dashboard, shallowEqual); const dispatch = useDispatch(); const handleUpdate = () => { dispatch(getUpdate()); }; return <> Click here , ]} > update_announcement   {canAutoUpdate ? ( ) : ( Link ), }}> manual_update )} ; }; export default UpdateTopline;