plane/apps/space/components/issues/board-views/block-priority.tsx
sriram veeraghanta 579347c991 fix:mobx fixes
2023-08-30 20:33:21 +05:30

18 lines
586 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={`h-6 w-6 rounded flex justify-center items-center ${priority_detail?.className}`}>
<span className="material-symbols-rounded text-sm">{priority_detail?.icon}</span>
</div>
);
};