// components import { KanBanProperties } from "./properties"; import { IssuePeekOverview } from "components/issues/issue-peek-overview"; // ui import { Tooltip } from "@plane/ui"; // types import { IEstimatePoint, IIssue, IIssueLabels, IState, IUserLite } 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: IState[] | null; labels: IIssueLabels[] | null; members: IUserLite[] | null; estimates: IEstimatePoint[] | null; } export const IssueBlock: React.FC = (props) => { const { columnId, issue, handleIssues, quickActions, display_properties, states, labels, members, estimates } = props; const updateIssue = (group_by: string | null, issueToUpdate: IIssue) => { 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)}
); };