// @flow import React, { useState, useEffect } from 'react'; import MarkdownPreview from 'component/common/markdown-preview'; import Button from 'component/button'; import I18nMessage from 'component/i18nMessage'; type Props = { hideReleaseVersion?: boolean, }; const LastReleaseChanges = (props: Props) => { const { hideReleaseVersion } = props; const [releaseTag, setReleaseTag] = useState(''); const [releaseChanges, setReleaseChanges] = useState(''); const [fetchingReleaseChanges, setFetchingReleaseChanges] = useState(false); const [fetchReleaseFailed, setFetchReleaseFailed] = useState(false); const releaseVersionTitle = (
{!hideReleaseVersion && __('A new version %release_tag% of LBRY is ready for you.', { release_tag: releaseTag })}
); const seeReleaseNotes = (
{__('Loading...')}
; } if (fetchReleaseFailed) { return (