forked from github/plane
5b0066140f
* chore: format all files in the project * fix: removing @types/react from dependencies * fix: adding prettier and eslint config * chore: format files * fix: upgrading turbo version * chore: ignoring warnings and adding todos * fix: updated the type of bubble menu item in the document editor * chore: format files --------- Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
19 lines
593 B
TypeScript
19 lines
593 B
TypeScript
"use client";
|
|
|
|
// types
|
|
import { TIssuePriorityKey } from "types/issue";
|
|
// constants
|
|
import { issuePriorityFilter } from "constants/data";
|
|
|
|
export const IssueBlockPriority = ({ priority }: { priority: TIssuePriorityKey | null }) => {
|
|
const priority_detail = priority != null ? issuePriorityFilter(priority) : null;
|
|
|
|
if (priority_detail === null) return <></>;
|
|
|
|
return (
|
|
<div className={`grid h-6 w-6 place-items-center rounded border-[0.5px] ${priority_detail?.className}`}>
|
|
<span className="material-symbols-rounded text-sm">{priority_detail?.icon}</span>
|
|
</div>
|
|
);
|
|
};
|