import * as React from 'react'; import { storiesOf } from '@storybook/react'; import { wInfo } from '@utils/wInfo'; import RCCSurveyCTA from './'; const props = { title: 'Welcome to the Rapha Cycling Club', subTitle: 'Take the RCC Survey', body: 'Help us ensure you get the most out of your membership by looking ahead to the next 12 months, and answering the following questions.', buttonText: 'Take the Survey', image: { alt: 'Rapha Cycling Club logo', aspect: '1:1', src: 'https://i1.adis.ws/i/rapha/rcc_crest_2018_white' } }; (storiesOf('RCC Survey CTA', module) as any).addWithJSX( 'Default', wInfo(` ### Usage ~~~js import RCCSurveyCTA from '.'; const props = { title: 'Welcome to the Rapha Cycling Club', subTitle: 'Take the RCC Survey', body: 'Help us ensure you get the most out of your membership by looking ahead to the next 12 months, and answering the following questions.', buttonText: 'Take the Survey', image: { alt: "Rapha Cycling Club logo", aspect: "1:1", src: "https://i1.adis.ws/i/rapha/rcc_crest_2018_white" } }; ~~~`)(() => ) );