import React from 'react'; import { defineMessages, useIntl } from 'react-intl'; import IconButton from '../../../components/icon_button'; import Column from './column'; import ColumnHeader from './column_header'; const messages = defineMessages({ title: { id: 'bundle_column_error.title', defaultMessage: 'Network error' }, body: { id: 'bundle_column_error.body', defaultMessage: 'Something went wrong while loading this component.' }, retry: { id: 'bundle_column_error.retry', defaultMessage: 'Try again' }, }); interface IBundleColumnError { onRetry: () => void, } const BundleColumnError: React.FC = ({ onRetry }) => { const intl = useIntl(); const handleRetry = () => { onRetry(); }; return (
{intl.formatMessage(messages.body)}
); }; export default BundleColumnError;