houdini/client/js/components/modal.js

8 lines
264 B
JavaScript

const h = require('flimflam/h')
const modal = require('flimflam/ui/modal')
// convenience wrapper for setting modal sizes
// sizes can be 'small' or 'large'
module.exports = (obj, size='medium') =>
h('div', {class: {[`modal-${size}`] : size}}, [ modal(obj)])