Files: 60479658b26b297158dd59938d021562a5b447ec / app / page / userShow.js
406 bytesRaw
1 | const nest = require('depnest') |
2 | const { h } = require('mutant') |
3 | |
4 | exports.gives = nest('app.page.userShow') |
5 | |
6 | exports.needs = nest({ |
7 | 'app.html.nav': 'first' |
8 | }) |
9 | |
10 | exports.create = (api) => { |
11 | return nest('app.page.userShow', userShow) |
12 | |
13 | function userShow (location) { |
14 | |
15 | return h('Page -userShow', [ |
16 | h('h1', 'User show'), |
17 | api.app.html.nav(), |
18 | h('p', `key: ${location.key}`) |
19 | ]) |
20 | } |
21 | } |
22 |
Built with git-ssb-web