2022-12-22 16:19:46 +00:00
|
|
|
export const getPriorityIcon = (priority: string, className?: string) => {
|
|
|
|
if (!className || className === "") className = "text-xs";
|
|
|
|
|
2022-12-07 23:27:10 +00:00
|
|
|
switch (priority) {
|
|
|
|
case "urgent":
|
2022-12-20 14:50:45 +00:00
|
|
|
return <span className={`material-symbols-rounded ${className}`}>error</span>;
|
2022-12-07 23:27:10 +00:00
|
|
|
case "high":
|
2022-12-20 14:50:45 +00:00
|
|
|
return <span className={`material-symbols-rounded ${className}`}>signal_cellular_alt</span>;
|
2022-12-07 23:27:10 +00:00
|
|
|
case "medium":
|
2022-12-20 14:50:45 +00:00
|
|
|
return (
|
|
|
|
<span className={`material-symbols-rounded ${className}`}>signal_cellular_alt_2_bar</span>
|
|
|
|
);
|
|
|
|
case "low":
|
|
|
|
return (
|
|
|
|
<span className={`material-symbols-rounded ${className}`}>signal_cellular_alt_1_bar</span>
|
|
|
|
);
|
2022-12-07 23:27:10 +00:00
|
|
|
default:
|
2022-12-22 16:19:46 +00:00
|
|
|
return "None";
|
2022-12-07 23:27:10 +00:00
|
|
|
}
|
|
|
|
};
|