docbrown/app/javascript/onboarding/components/SlideContent.jsx
2019-09-23 14:08:58 -04:00

28 lines
602 B
JavaScript

import { h } from 'preact';
import PropTypes from 'prop-types';
const SlideContent = ({ imageSource, imageAlt, content, style = { textAlign: 'center' } }) => (
<div style={style}>
<img
src={imageSource}
alt={imageAlt}
style={{ borderRadius: '8px', height: '220px' }}
/>
<br />
{content}
<p>
<strong>
<em>Let's get started...</em>
</strong>
</p>
</div>
);
SlideContent.propTypes = {
imageSource: PropTypes.string,
imageAlt: PropTypes.string,
content: PropTypes.string,
style: PropTypes.object,
};
export default SlideContent;