UNPKG

e-lado

Version:

[![CircleCI](https://circleci.com/gh/sharetribe/sharetribe/tree/master.svg?style=svg)](https://circleci.com/gh/sharetribe/sharetribe/tree/master) [![Dependency Status](https://gemnasium.com/sharetribe/sharetribe.png)](https://gemnasium.com/sharetribe/shar

27 lines (21 loc) 807 B
import { PropTypes } from 'react'; import { div, p, a } from 'r-dom'; import { t } from '../../../utils/i18n'; import css from './Branding.css'; export default function Branding({ linkToSharetribe }) { const learnMoreLink = a({ href: linkToSharetribe }, t('web.branding.learn_more')); const sharetribeLink = a({ href: linkToSharetribe }, 'Sharetribe'); return div({ className: css.brandingContainer, }, [ div({ className: css.brandingContent, }, [ p({}, t('web.branding.powered_by', { service_name: 'Sharetribe', sharetribe_link: sharetribeLink, learn_more: learnMoreLink })), p({}, t('web.branding.create_own', { service_name: 'Sharetribe', learn_more: learnMoreLink })), ]), ]); } Branding.propTypes = { linkToSharetribe: PropTypes.string.isRequired, };