Files: f2c1e3d81bf5bba14c878872f1c99529d7eb2be5 / app / page / error.js
425 bytesRaw
1 | const nest = require('depnest') |
2 | const { h } = require('mutant') |
3 | |
4 | exports.gives = nest('app.page.error') |
5 | |
6 | exports.needs = nest({ |
7 | 'app.html.nav': 'first' |
8 | }) |
9 | |
10 | exports.create = (api) => { |
11 | return nest('app.page.error', error) |
12 | |
13 | function error (location) { |
14 | |
15 | return h('Page -error', [ |
16 | h('h1', 'Error'), |
17 | api.app.html.nav(), |
18 | "The route wasn't found of there was an error", |
19 | location.error |
20 | ]) |
21 | } |
22 | } |
23 |
Built with git-ssb-web