import React from 'react' import PropTypes from 'prop-types' import { NimbleEmoji } from '.' export default class NotFound extends React.PureComponent { render() { const { data, emojiProps, i18n, notFound, notFoundEmoji } = this.props const component = (notFound && notFound()) || (
{NimbleEmoji({ data: data, ...emojiProps, size: 38, emoji: notFoundEmoji, onOver: null, onLeave: null, onClick: null, })}
{i18n.notfound}
) return component } } NotFound.propTypes = { notFound: PropTypes.func.isRequired, notFoundString: PropTypes.string.isRequired, emojiProps: PropTypes.object.isRequired, }