verdnatura-chat/app/containers/markdown/MessageBody/Paragraph.js

18 lines
459 B
JavaScript
Raw Normal View History

2021-08-12 21:05:18 +00:00
import React from 'react';
import PropTypes from 'prop-types';
import Inline from './Inline';
const Paragraph = ({
value, mentions, navToRoomInfo, style
}) => <Inline value={value} mentions={mentions} navToRoomInfo={navToRoomInfo} style={style} />;
2021-08-12 21:05:18 +00:00
Paragraph.propTypes = {
value: PropTypes.string,
mentions: PropTypes.string,
navToRoomInfo: PropTypes.func,
style: PropTypes.oneOfType([PropTypes.array, PropTypes.object])
2021-08-12 21:05:18 +00:00
};
export default Paragraph;