Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react'
import PropTypes from 'prop-types'
import { emojiIndex, Picker } from 'emoji-mart'
import classNames from '../../utilities/classNames'
export const propTypes = Object.assign(Picker.propTypes, {
showPreview: PropTypes.bool,
})
const defaultProps = {
color: '#3197d6',
emoji: 'point_up',
set: 'apple',
skin: 1,
title: 'Pick an emoji',
showPreview: false,
}
const EmojiPicker = props => {
const { className, showPreview, style, ...rest } = props
const componentClassName = classNames(