lbry.tech/app/components/wrapper.js
ポール ウェッブ 20c90187cb Uniformity
2018-10-10 12:56:35 -05:00

31 lines
673 B
JavaScript

"use strict";
// P A C K A G E S
import asyncHtml from "choo-async/html";
import { require as local } from "app-root-path";
// U T I L S
const footer = local("/app/components/footer").default;
const navigation = local("/app/components/navigation").default;
// E X P O R T
export default children => (state, emit) => 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(state, emit)}
${footer(state, emit)}
</main>
`;