+
+
+
+ {(error?.number || error?.message) ?
+
+ :
+
+ }
+
+
+
+
+
+
+ );
+};
+
+ErrorCard.propTypes = propTypes;
+export default ErrorCard;
diff --git a/lib/ErrorCard/ErrorCard.test.js b/lib/ErrorCard/ErrorCard.test.js
new file mode 100644
index 00000000..f11e4240
--- /dev/null
+++ b/lib/ErrorCard/ErrorCard.test.js
@@ -0,0 +1,78 @@
+
+import { StaticRouter as Router } from 'react-router-dom';
+import { renderWithIntl, Headline } from '@folio/stripes-erm-testing';
+import { translationsProperties } from '../../test/jest/helpers';
+import ErrorCard from './ErrorCard';
+
+const resourceError = { number: 400, message: 'Bad Request' };
+const resourceHeaderStart = 'EKB-TITLE: 22-1887786-11234147a';
+
+const commonError = {};
+
+const headerEnd = null;
+
+let renderComponent;
+describe('ErrorCard', () => {
+ describe('resource error', () => {
+ beforeEach(() => {
+ renderComponent = renderWithIntl(
+