mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
3d09a69d58
* fix: eslint fixes --------- Co-authored-by: gurusainath <gurusainath007@gmail.com>
26 lines
681 B
TypeScript
26 lines
681 B
TypeScript
// types
|
|
import { TIssuePriorities } from "@plane/types";
|
|
|
|
type Props = {
|
|
priority: TIssuePriorities | null;
|
|
className?: string;
|
|
};
|
|
|
|
export const PriorityIcon: React.FC<Props> = ({ priority, className = "" }) => {
|
|
if (!className || className === "") className = "text-xs flex items-center";
|
|
|
|
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>
|
|
);
|
|
};
|