lbry.tech/app/components/wrapper.js

33 lines
613 B
JavaScript
Raw Normal View History

2018-08-28 18:57:18 -05:00
"use strict";
2018-11-30 14:46:22 -06:00
// I M P O R T
2018-08-28 18:57:18 -05:00
2018-08-29 11:58:55 -05:00
import asyncHtml from "choo-async/html";
2018-08-28 18:57:18 -05:00
2018-10-10 12:56:35 -05:00
// U T I L S
2018-08-28 18:57:18 -05:00
2018-11-30 14:46:22 -06:00
import footer from "./footer";
import navigation from "./navigation";
2018-08-28 18:57:18 -05:00
// E X P O R T
2018-11-30 14:46:22 -06:00
export default children => (state, emit) => {
return asyncHtml`
<main>
<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>
${navigation(state.href)}
<aside class="flashes" id="flash-container"></aside>
${children.default(state, emit)}
${footer(state, emit)}
</main>
`;
};