@financial-times/n-conversion-forms
Version:
Containing jsx components and styles for forms included on Accounts and Acquisition apps (next-signup, next-profile, next-retention, etc).
30 lines (26 loc) • 737 B
JSX
import React from 'react';
import PropTypes from 'prop-types';
export function TrialBanner({ trialDuration = '' }) {
const durationMessage = trialDuration ? (
<>
<span className="ncf__strong">{trialDuration}</span>{' '}
</>
) : (
''
);
return (
<div id="trialBanner" className="ncf__trial-banner">
<p className="ncf__trial-banner-content">
Your free {durationMessage}FT.com trial
<img
src="https://images.ft.com/v3/image/raw/https%3A%2F%2Fwww.ft.com%2F__assets%2Fcreatives%2Fb2b%2Fmacron-desktop-banner.png?source=n-conversion-forms&height=40"
alt="Emmanuel Macron"
className="ncf__trial-banner-img"
/>
</p>
</div>
);
}
TrialBanner.propTypes = {
trialDuration: PropTypes.string,
};