import React from 'react'; import { defineMessages, injectIntl } from 'react-intl'; import PropTypes from 'prop-types'; import Button from '/imports/ui/components/button/component'; import { styles } from './styles'; const intlMessages = defineMessages({ title: { id: 'app.error.fallback.view.title', description: 'title for presentation when fallback is showed', }, description: { id: 'app.error.fallback.view.description', description: 'description for presentation when fallback is showed', }, reloadButton: { id: 'app.error.fallback.view.reloadButton', description: 'Button label when fallback is showed', }, }); const propTypes = { intl: PropTypes.shape({ formatMessage: PropTypes.func.isRequired, }).isRequired, error: PropTypes.shape({ message: PropTypes.string.isRequired, }), }; const defaultProps = { error: { message: '', }, }; const FallbackView = ({ error, intl }) => (