diff --git a/monkey/monkey_island/cc/ui/src/components/ui-components/UploadStatusIcon.tsx b/monkey/monkey_island/cc/ui/src/components/ui-components/UploadStatusIcon.tsx new file mode 100644 index 000000000..5db4790cb --- /dev/null +++ b/monkey/monkey_island/cc/ui/src/components/ui-components/UploadStatusIcon.tsx @@ -0,0 +1,23 @@ +import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; +import {faCheck, faTimes} from '@fortawesome/free-solid-svg-icons'; +import React from 'react'; + + +export const UploadStatuses = { + clean: 'clean', + success: 'success', + error: 'error' +} + +const UploadStatusIcon = (props: { status: string }) => { + switch (props.status) { + case UploadStatuses.success: + return (); + case UploadStatuses.error: + return (); + default: + return null; + } +} + +export default UploadStatusIcon; diff --git a/monkey/monkey_island/cc/ui/src/styles/components/Icons.scss b/monkey/monkey_island/cc/ui/src/styles/components/Icons.scss index 2da5087b6..9d89a7e48 100644 --- a/monkey/monkey_island/cc/ui/src/styles/components/Icons.scss +++ b/monkey/monkey_island/cc/ui/src/styles/components/Icons.scss @@ -11,7 +11,7 @@ } .icon-success { - color: $success + color: $success; } .icon-failed { @@ -26,3 +26,11 @@ transform: rotate(359deg); } } + +.upload-status-icon-success { + color: $success; +} + +.upload-status-icon-error { + color: $danger; +}