File size: 554 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import page from '@automattic/calypso-router';
import Spotlight from 'calypso/components/spotlight';
export default function SpotlightTemplate( props ) {
const { trackImpression, message, CTA, description, iconPath, onClick } = props;
const spotlightOnClick = () => {
onClick();
page( CTA.link );
};
return (
<>
{ trackImpression && trackImpression() }
<Spotlight
taglineText={ message }
illustrationSrc={ iconPath }
onClick={ spotlightOnClick }
titleText={ description }
ctaText={ CTA.message }
/>
</>
);
}
|