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

19 lines
516 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 = ({
2021-08-20 16:25:30 +00:00
value, mentions, channels, navToRoomInfo, style
}) => <Inline value={value} mentions={mentions} channels={channels} navToRoomInfo={navToRoomInfo} style={style} />;
2021-08-12 21:05:18 +00:00
Paragraph.propTypes = {
value: PropTypes.string,
2021-08-20 16:25:30 +00:00
mentions: PropTypes.array,
channels: PropTypes.array,
navToRoomInfo: PropTypes.func,
style: PropTypes.oneOfType([PropTypes.array, PropTypes.object])
2021-08-12 21:05:18 +00:00
};
export default Paragraph;