const { Component, Fragment } = require('inferno'); const { cacheComponent } = require('../util/cache'); class Paypal extends Component { render() { const { title, business, currencyCode } = this.props; if (!business || !currencyCode) { return
You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.
; } return
; } } module.exports = cacheComponent(Paypal, 'donate.paypal', props => { const { donate, helper } = props; return { business: donate.business, currencyCode: donate.currency_code, title: helper.__('donate.' + donate.type), url_for: helper.url_for }; });