Skip to content

Instantly share code, notes, and snippets.

@iamkevingreen
Created December 11, 2017 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamkevingreen/a21f57795043b00908a2cad0d0d6233a to your computer and use it in GitHub Desktop.
Save iamkevingreen/a21f57795043b00908a2cad0d0d6233a to your computer and use it in GitHub Desktop.
const TextModule = require('./TextModule.js')
const FullImageModule = require('./FullImageModule.js')
module.exports = (module, type) => {
console.log(type)
switch (type) {
case 'modulePassportText':
return TextModule(module)
case 'modulePassportFullImage':
return FullImageModule(module)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment