lbry.tech/app/components/wrapper.js
ポール ウェッブ 1a81121b74 2.0.0
2018-11-30 14:46:22 -06:00

32 lines
613 B
JavaScript

"use strict";
// I M P O R T
import asyncHtml from "choo-async/html";
// U T I L S
import footer from "./footer";
import navigation from "./navigation";
// E X P O R T
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>
`;
};