import React, { ReactElement } from 'react'; import './OnboardSlide.scss'; interface Props { header: ReactElement | string; subheader?: ReactElement | string; content: ReactElement | string; image: string; imageSide: 'left' | 'right'; } class OnboardSlide extends React.Component { public render() { const { header, subheader, content, image, imageSide } = this.props; return (

{header}

{subheader &&

{subheader}

}
{imageSide === 'left' && (
)}
{content}
{imageSide === 'right' && (
)}
); } } export default OnboardSlide;