import { defineMessages, useIntl } from 'react-intl'; import { mdiInformation } from '@mdi/js'; import InfoBar from './ui/InfoBar'; import Icon from './ui/icon'; import { onAuthGoToReleaseNotes } from '../helpers/update-helpers'; const messages = defineMessages({ updateAvailable: { id: 'infobar.updateAvailable', defaultMessage: 'A new update for Ferdium is available.', }, changelog: { id: 'infobar.buttonChangelog', defaultMessage: 'What is new?', }, buttonInstallUpdate: { id: 'infobar.buttonInstallUpdate', defaultMessage: 'Restart & install update', }, }); type Props = { onInstallUpdate: () => void; onHide: () => void; updateVersionParsed: string; }; const AppUpdateInfoBar = ({ onInstallUpdate, updateVersionParsed, onHide, }: Props) => { const intl = useIntl(); return ( {intl.formatMessage(messages.updateAvailable)}{' '} ); }; export default AppUpdateInfoBar;