mirror of https://github.com/micromata/borgbackup-butler.git

Fin Reinhard
22.27.2019 910bf7b1c1e58c1b8dbe2ae7aeb362af5788a932
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import React from 'react';
import {Link} from 'react-router-dom';
import './style.css'
import {formatDateTime} from '../../../utilities/global';
import I18n from "../../general/translation/I18n";
 
function Footer({versionInfo}) {
 
    if (versionInfo.failed) {
        return (
            <div className={'footer'}>
                <p className={'version'}>Cannot fetch version information.</p>
            </div>
        );
    }
 
    return <div className={'footer'}>
        <p className={'version'}>
            <I18n name={'version'}/> {versionInfo.version} * <I18n name={'version.buildDate'}/> {formatDateTime(versionInfo.buildDate)}
            {versionInfo.updateVersion ? <span> * <Link to={'/update'}><I18n name={'version.updateAvailable'}/></Link></span> : ''}
        </p>
    </div>;
}
 
export default Footer;