Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const R = require('ramda')
const h = require('snabbdom/h')
const patch = require('snabbdom/snabbdom.js').init([
require('snabbdom/modules/class'),
require('snabbdom/modules/style'),
require('snabbdom/modules/props'),
require('snabbdom/modules/eventlisteners'),
])
const F = require('../../lib')
let {blocks} = require('./modulos')
let blocksM = blocks('blocks')
// TODO: update this example, take things from WindowListener task example
module.exports = F.def({
init: ({key}) => ({
/* jshint esnext: true */
const R = require('ramda');
const flyd = require('flyd');
const stream = flyd.stream;
const forwardTo = require('flyd-forwardto');
const Type = require('union-type');
const patch = require('snabbdom/snabbdom.js').init([
require('snabbdom/modules/class'),
require('snabbdom/modules/style'),
require('snabbdom/modules/props'),
require('snabbdom/modules/eventlisteners'),
]);
const h = require('snabbdom/h')
const Modal = require('./modal')
// Model
const init = () => ({
modalOpen: false,
});
// Actions