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 }) => (
|
|
|
|
<>
|
2021-08-12 21:12:04 +00:00
|
|
|
{value.map((block, index) => <Emoji key={index} emojiHandle={`:${ block.value.value }:`} isBigEmoji />)}
|
2021-08-12 21:05:18 +00:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
|
|
|
|
BigEmoji.propTypes = {
|
|
|
|
value: PropTypes.object
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BigEmoji;
|