fbz
Version:
Fork of the OpenBazaar 2.0 browser-based client.
25 lines (20 loc) • 514 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
const SimpleMessage = props => {
return (
<section>
<h1>{props.title}</h1>
<p>{props.body}</p>
</section>
);
};
SimpleMessage.modalProps = {
path: 'components/modals/SimpleMessage',
rootClass: 'modalS'
};
// todo: probably only title should be required or maybe one-of title or body.
SimpleMessage.propTypes = {
title: PropTypes.string.isRequired,
body: PropTypes.string.isRequired
};
export default SimpleMessage;