19 lines
464 B
JavaScript
19 lines
464 B
JavaScript
|
var h = require("virtual-dom/h")
|
||
|
|
||
|
module.exports = function(savingState) {
|
||
|
return h('div.savingIndicator.pastelBox--yellow'
|
||
|
, {style: {
|
||
|
position: 'fixed'
|
||
|
, top: '0'
|
||
|
, left: '50%'
|
||
|
, width: '70px'
|
||
|
, marginLeft: '-35px'
|
||
|
, textAlign: 'center'
|
||
|
, zIndex: '999999'
|
||
|
, fontSize: '14px'
|
||
|
, padding: '4px'
|
||
|
, display: savingState.hide ? 'none' : 'block'
|
||
|
}}
|
||
|
, savingState.text)
|
||
|
}
|