lbry.tech/app/components/wrapper.js
ポール ウェッブ 4aee87d427 Simpli/unification
2018-10-03 16:13:31 -05:00

31 lines
677 B
JavaScript

"use strict";
// P A C K A G E
import asyncHtml from "choo-async/html";
import { require as local } from "app-root-path";
// V A R I A B L E 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>
`;