You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.9 KiB
35 lines
1.9 KiB
export function OrderLevel({ value }) { |
|
return ( |
|
<div className="p-2 rounded-3xl border border-gray-300 w-fit"> |
|
{(() => { |
|
switch(value) { |
|
case 1: |
|
return <div className="flex flex-row items-center justify-center "> |
|
<span className="w-2 h-2 rounded-full ml-2" style={{ backgroundColor: "#65FFAD" }}></span> |
|
<span style={{ color: "#00253A" }} className="">وضعیت عادی</span> |
|
</div>; |
|
case 2: |
|
return <div className="flex flex-row items-center justify-center "> |
|
<span className="w-2 h-2 rounded-full ml-2" style={{ backgroundColor: "#FF6565" }}></span> |
|
<span style={{ color: "#00253A" }} className="">اعلان سطح هشدار</span> |
|
</div>; |
|
case 3: |
|
return <div className="flex flex-row items-center justify-center "> |
|
<span className="w-2 h-2 rounded-full ml-2" style={{ backgroundColor: "#65DAFF" }}></span> |
|
<span style={{ color: "#00253A" }} className="">بررسی و پیگیری</span> |
|
</div>; |
|
case 4: |
|
return <div className="flex flex-row items-center justify-center "> |
|
<span className="w-2 h-2 rounded-full ml-2" style={{ backgroundColor: "#FFEA65" }}></span> |
|
<span style={{ color: "#00253A" }} className="">وضعیت بحرانی</span> |
|
</div>; |
|
default: |
|
return <div className="flex flex-row items-center justify-center "> |
|
<span className="w-2 h-2 rounded-full ml-2" style={{ backgroundColor: "#CCFF65" }}></span> |
|
<span style={{ color: "#00253A" }} className="">وضعیت پایدار</span> |
|
</div>; |
|
} |
|
})()} |
|
</div> |
|
); |
|
}
|
|
|