mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
37 lines
786 B
TypeScript
37 lines
786 B
TypeScript
|
import * as React from "react";
|
||
|
|
||
|
// icons
|
||
|
import {
|
||
|
AlertCircle,
|
||
|
Ban,
|
||
|
SignalHigh,
|
||
|
SignalLow,
|
||
|
SignalMedium,
|
||
|
} from "lucide-react";
|
||
|
|
||
|
// types
|
||
|
import { IPriorityIcon } from "./type";
|
||
|
|
||
|
export const PriorityIcon: React.FC<IPriorityIcon> = ({
|
||
|
priority,
|
||
|
className = "",
|
||
|
}) => {
|
||
|
if (!className || className === "") className = "h-3.5 w-3.5";
|
||
|
|
||
|
return (
|
||
|
<>
|
||
|
{priority === "urgent" ? (
|
||
|
<AlertCircle className={`${className}`} />
|
||
|
) : priority === "high" ? (
|
||
|
<SignalHigh className={`${className}`} />
|
||
|
) : priority === "medium" ? (
|
||
|
<SignalMedium className={`${className}`} />
|
||
|
) : priority === "low" ? (
|
||
|
<SignalLow className={`${className}`} />
|
||
|
) : (
|
||
|
<Ban className={`${className}`} />
|
||
|
)}
|
||
|
</>
|
||
|
);
|
||
|
};
|