UNPKG

@financial-times/n-conversion-forms

Version:

Containing jsx components and styles for forms included on Accounts and Acqusition apps (next-signup, next-profile, next-retention, etc).

10 lines (8 loc) 332 B
const { getCountries } = require('../utils/countries'); module.exports = function ({ hash = {}, fn }) { const filter = Array.isArray(hash.filterList) ? hash.filterList : []; const value = hash.value; const countries = getCountries({ filter, value }); const context = Object.assign({ countries }, this); return fn(context); };