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

19 lines
357 B
JavaScript
Raw Normal View History

2021-08-12 21:05:18 +00:00
/* eslint-disable react/no-array-index-key */
import React from 'react';
import PropTypes from 'prop-types';
import Emoji from './Emoji';
const BigEmoji = ({ value }) => (
<>
{value.map((block, index) => <Emoji key={index} value={block.value.value} isBigEmoji />)}
</>
);
BigEmoji.propTypes = {
value: PropTypes.object
};
export default BigEmoji;