git ssb

0+

mixmix / patchbay-scry



Tree: 988caf44b54d771fc4246af26cbfcdec87f9dcc8

Files: 988caf44b54d771fc4246af26cbfcdec87f9dcc8 / views / new.js

486 bytesRaw
1const { h, Struct, Array: MutantArray, computed } = require('mutant')
2const PickTimes = require('./new-steps/pick-times')
3
4module.exports = function ScryNew (opts) {
5 // const {
6 // i18n
7 // } = opts
8
9 const state = Struct({
10 step: 0,
11 monthIndex: new Date().getMonth(),
12 days: MutantArray([]),
13 times: MutantArray([])
14 })
15
16 return h('ScryNew', [
17 computed(state.step, step => {
18 switch (step) {
19 case 0: return PickTimes(state)
20 }
21 })
22 ])
23}
24

Built with git-ssb-web