import React from 'react'; import Component from '../component'; import {decorate} from '../utils/plugins'; import Notification_ from './notification'; const Notification = decorate(Notification_); export default class Notifications extends Component { template(css) { return (
{ this.props.customChildrenBefore } { this.props.fontShowing && } { this.props.resizeShowing && } { this.props.updateShowing && Version { this.props.updateVersion} ready. { this.props.updateNote && ` ${this.props.updateNote.trim().replace(/\.$/, '')}` } { ' ' } ( { window.require('electron').shell.openExternal(ev.target.href); ev.preventDefault(); }} href={`https://github.com/zeit/hyperterm/releases/tag/${this.props.updateVersion}`} >notes). { ' ' } Restart . { ' ' } } { this.props.customChildren }
); } styles() { return { view: { position: 'fixed', bottom: '20px', right: '20px' } }; } }