// components import { KanBanProperties } from "./properties"; import { IssuePeekOverview } from "components/issues/issue-peek-overview"; // ui import { Tooltip } from "@plane/ui"; // types import { IIssue } from "types"; interface IssueBlockProps { columnId: string; issue: IIssue; handleIssues: (group_by: string | null, issue: IIssue, action: "update" | "delete") => void; quickActions: (group_by: string | null, issue: IIssue) => React.ReactNode; display_properties: any; states: any; labels: any; members: any; priorities: any; } export const IssueBlock: React.FC = (props) => { const { columnId, issue, handleIssues, quickActions, display_properties, states, labels, members, priorities } = props; const updateIssue = (group_by: string | null, issueToUpdate: IIssue) => { if (issueToUpdate && handleIssues) handleIssues(group_by, issueToUpdate, "update"); }; return ( <>
{display_properties && display_properties?.key && (
{issue?.project_detail?.identifier}-{issue.sequence_id}
)} {}} >
{issue.name}
{quickActions(!columnId && columnId === "null" ? null : columnId, issue)}
); };