Files: 11a18b6002794331feb9f11d67fbfa08986633e9 / message / html / meta / unread.js
421 bytesRaw
1 | const nest = require('depnest') |
2 | const { h } = require('mutant') |
3 | |
4 | exports.gives = nest('message.html.meta') |
5 | |
6 | exports.needs = nest({ |
7 | 'about.obs.name': 'first', |
8 | 'message.obs.likes': 'first' |
9 | }) |
10 | |
11 | exports.create = (api) => { |
12 | return nest('message.html.meta', unread) |
13 | |
14 | // UnreadFeature (search codebase for this if extracting) |
15 | function unread (msg) { |
16 | return h('div.unread', { title: 'A new message' }, 'new') |
17 | } |
18 | } |
19 |
Built with git-ssb-web