lbry.tech/views/components/layout.js

30 lines
560 B
JavaScript
Raw Normal View History

2018-07-12 17:21:42 +02:00
"use strict";
// P A C K A G E
const html = require("choo-async/html");
// V A R I A B L E S
const footer = require("../partials/footer");
const navigation = require("../partials/navigation");
2018-07-13 23:58:24 +02:00
// E X P O R T
2018-07-12 17:21:42 +02:00
2018-07-13 23:58:24 +02:00
module.exports = exports = children => (state, emit) => html`
2018-07-12 17:21:42 +02:00
<main>
2018-07-13 23:58:24 +02:00
<noscript>
<p>LBRY is quite fancy and relies on a bit of JavaScript to do these fancy things.</p>
<p>Please enable it, if you can.</p>
</noscript>
2018-07-12 17:21:42 +02:00
${navigation(state, emit)}
${children(state, emit)}
${footer(state, emit)}
</main>
`;