diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-09-06 17:55:36 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-09-06 17:55:36 -0500 |
| commit | 18797aa45fd45d4f3d5e70c39061324c4311983d (patch) | |
| tree | cb1fed47c98901a6cf89c8f801d5f871c069a46b /src | |
| parent | 9c7f855631aec18356008c296be211c6d64c983f (diff) | |
| download | slskd-18797aa45fd45d4f3d5e70c39061324c4311983d.tar.gz | |
add ErrorSegment
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/src/components/Shared/ErrorSegment.js | 14 |
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 |
