blob: 5d05bb7522c7b5408d9db6a13d28df2821d1e294 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
var h = require('mercury').h;
var insert = require('insert-css');
var css = require('./index.css');
var anchor = require('../../router/anchor');
module.exports = {
render: render
};
function render(state, channels) {
insert(css);
if (state.hash) {
return h('.hidden');
}
return h('header', [
anchor({
href: '/',
className: 'menu'
}, 'Menu'),
h('.title', 'PDF Reader'),
h('a.more', {
href: '#'
}, '...')
]);
}