const { Component } = require('inferno'); const { cacheComponent } = require('../util/cache'); class BuyMeACoffee extends Component { render() { const { title, url, url_for } = this.props; if (!url) { return
You forgot to set the url for "Buy me a coffee". Please set it in _config.yml.
; } return ; } } module.exports = cacheComponent(BuyMeACoffee, 'donate.buymeacoffee', props => { const { donate, helper } = props; return { url: donate.url, title: helper.__('donate.' + donate.type), url_for: helper.url_for }; });