git ssb

0+

Piet / ssb-loomio



Tree: ea9a423663b274022b27c3a9574fc2dfefa5b165

Files: ea9a423663b274022b27c3a9574fc2dfefa5b165 / poll / sync / chooseOne.js

345 bytesRaw
1const Poll = require('./poll')
2const { CHOOSE_ONE } = require('../../types')
3
4function ChooseOne ({ choices, title, closesAt, body, channel, recps, mentions }) {
5 return Poll({
6 details: {
7 choices,
8 type: CHOOSE_ONE
9 },
10 title,
11 closesAt,
12 body,
13 channel,
14 recps,
15 mentions
16 })
17}
18
19module.exports = ChooseOne
20

Built with git-ssb-web