import { h } from 'preact';
import PropTypes from 'prop-types';
const SlideContent = ({
imageSource,
imageAlt,
content,
style = { textAlign: 'center' },
}) => (
{content}
Let's get started...
);
SlideContent.propTypes = {
imageSource: PropTypes.string.isRequired,
imageAlt: PropTypes.string.isRequired,
content: PropTypes.string.isRequired,
style: PropTypes.shape().isRequired, // bypassing shape validator to allow for additional attributes
};
export default SlideContent;