// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React from 'react'; import {DownloadedItem} from 'types/downloads'; import {FormattedMessage} from 'react-intl'; import {Button} from 'react-bootstrap'; import {START_UPDATE_DOWNLOAD} from 'common/communication'; import Thumbnail from '../Thumbnail'; type OwnProps = { item: DownloadedItem; } const UpdateAvailable = ({item}: OwnProps) => { const onButtonClick = (e: React.MouseEvent) => { e?.preventDefault?.(); window.postMessage({type: START_UPDATE_DOWNLOAD}, window.location.href); }; return (
); }; export default UpdateAvailable;