aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/ExecStatusIndicatorIcon.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-18 00:38:07 +0900
committernsfisis <nsfisis@gmail.com>2024-08-18 01:46:02 +0900
commitad42f43d1c3c8f0da0ac31b8016e2f20f1765720 (patch)
tree09567462299eed859bb0f2170ee2602825c23ca0 /frontend/app/components/ExecStatusIndicatorIcon.tsx
parent7653eb2b28911a0479b3b673c9b63fd490aedb6b (diff)
downloadiosdc-japan-2024-albatross-ad42f43d1c3c8f0da0ac31b8016e2f20f1765720.tar.gz
iosdc-japan-2024-albatross-ad42f43d1c3c8f0da0ac31b8016e2f20f1765720.tar.zst
iosdc-japan-2024-albatross-ad42f43d1c3c8f0da0ac31b8016e2f20f1765720.zip
refactor(frontend): extract components for gaming page
Diffstat (limited to 'frontend/app/components/ExecStatusIndicatorIcon.tsx')
-rw-r--r--frontend/app/components/ExecStatusIndicatorIcon.tsx51
1 files changed, 0 insertions, 51 deletions
diff --git a/frontend/app/components/ExecStatusIndicatorIcon.tsx b/frontend/app/components/ExecStatusIndicatorIcon.tsx
deleted file mode 100644
index 5277bfa..0000000
--- a/frontend/app/components/ExecStatusIndicatorIcon.tsx
+++ /dev/null
@@ -1,51 +0,0 @@
-import {
- faBan,
- faCircle,
- faCircleCheck,
- faCircleExclamation,
- faRotate,
-} from "@fortawesome/free-solid-svg-icons";
-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
-import type { ExecResultStatus } from "../models/ExecResult";
-
-type Props = {
- status: ExecResultStatus;
-};
-
-export default function ExecStatusIndicatorIcon({ status }: Props) {
- switch (status) {
- case "waiting_submission":
- return (
- <FontAwesomeIcon icon={faCircle} fixedWidth className="text-gray-400" />
- );
- case "running":
- return (
- <FontAwesomeIcon
- icon={faRotate}
- spin
- fixedWidth
- className="text-gray-700"
- />
- );
- case "success":
- return (
- <FontAwesomeIcon
- icon={faCircleCheck}
- fixedWidth
- className="text-green-500"
- />
- );
- case "canceled":
- return (
- <FontAwesomeIcon icon={faBan} fixedWidth className="text-gray-400" />
- );
- default:
- return (
- <FontAwesomeIcon
- icon={faCircleExclamation}
- fixedWidth
- className="text-red-500"
- />
- );
- }
-}