aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-09-06 17:55:36 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-09-06 17:55:36 -0500
commit18797aa45fd45d4f3d5e70c39061324c4311983d (patch)
treecb1fed47c98901a6cf89c8f801d5f871c069a46b /src/web
parent9c7f855631aec18356008c296be211c6d64c983f (diff)
downloadslskd-18797aa45fd45d4f3d5e70c39061324c4311983d.tar.gz
add ErrorSegment
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/components/Shared/ErrorSegment.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/web/src/components/Shared/ErrorSegment.js b/src/web/src/components/Shared/ErrorSegment.js
new file mode 100644
index 00000000..7a6caa9d
--- /dev/null
+++ b/src/web/src/components/Shared/ErrorSegment.js
@@ -0,0 +1,14 @@
+import React from 'react';
+
+import { Segment, Header, Icon } from 'semantic-ui-react';
+
+const ErrorSegment = ({ icon, caption }) => (
+ <Segment className='error-segment' placeholder basic>
+ <Header icon>
+ <Icon name='x' color='red'/>
+ Error: {caption}
+ </Header>
+</Segment>
+);
+
+export default ErrorSegment; \ No newline at end of file