2021-08-12 21:05:18 +00:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
import Inline from './Inline';
|
|
|
|
|
2021-08-14 01:18:22 +00:00
|
|
|
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,
|
2021-08-14 01:18:22 +00:00
|
|
|
navToRoomInfo: PropTypes.func,
|
|
|
|
style: PropTypes.oneOfType([PropTypes.array, PropTypes.object])
|
2021-08-12 21:05:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default Paragraph;
|