import { defineMessages, useIntl } from 'react-intl'; import { mdiInformation } from '@mdi/js'; import InfoBar from './ui/InfoBar'; import { GITHUB_FERDIUM_URL } from '../config'; import { openExternalUrl } from '../helpers/url-helpers'; import { Icon } from './ui/icon'; 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; }; const AppUpdateInfoBar = ({ onInstallUpdate, onHide }: Props) => { const intl = useIntl(); return ( {intl.formatMessage(messages.updateAvailable)}{' '} ); }; export default AppUpdateInfoBar;