2023-09-11 09:05:58 +00:00
|
|
|
// types
|
|
|
|
import { TIssuePriorities } from "types";
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
priority: TIssuePriorities | null;
|
|
|
|
className?: string;
|
|
|
|
};
|
2022-12-22 16:19:46 +00:00
|
|
|
|
2023-09-11 09:05:58 +00:00
|
|
|
export const PriorityIcon: React.FC<Props> = ({ priority, className = "" }) => {
|
|
|
|
if (!className || className === "") className = "text-xs flex items-center";
|
2023-05-16 05:11:37 +00:00
|
|
|
|
2023-09-11 09:05:58 +00:00
|
|
|
return (
|
|
|
|
<span className={`material-symbols-rounded ${className}`}>
|
|
|
|
{priority === "urgent"
|
|
|
|
? "error"
|
|
|
|
: priority === "high"
|
|
|
|
? "signal_cellular_alt"
|
|
|
|
: priority === "medium"
|
|
|
|
? "signal_cellular_alt_2_bar"
|
|
|
|
: priority === "low"
|
|
|
|
? "signal_cellular_alt_1_bar"
|
|
|
|
: "block"}
|
|
|
|
</span>
|
|
|
|
);
|
2022-12-07 23:27:10 +00:00
|
|
|
};
|