plane/space/components/issues/board-views/block-priority.tsx

19 lines
595 B
TypeScript
Raw Permalink Normal View History

"use client";
// types
2024-03-19 14:38:35 +00:00
import { issuePriorityFilter } from "@/constants/data";
import { TIssuePriorityKey } from "types/issue";
// constants
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>
);
};