// components import { ListProperties } from "./properties"; import { IssuePeekOverview } from "components/issues/issue-peek-overview"; // ui import { Spinner, Tooltip } from "@plane/ui"; // types import { IIssue, IIssueDisplayProperties } from "types"; import { EIssueActions } from "../types"; interface IssueBlockProps { columnId: string; issue: IIssue; handleIssues: (issue: IIssue, action: EIssueActions) => void; quickActions: (group_by: string | null, issue: IIssue) => React.ReactNode; displayProperties: IIssueDisplayProperties | undefined; isReadonly?: boolean; } export const IssueBlock: React.FC = (props) => { const { columnId, issue, handleIssues, quickActions, displayProperties, isReadonly } = props; const updateIssue = (group_by: string | null, issueToUpdate: IIssue) => { handleIssues(issueToUpdate, EIssueActions.UPDATE); }; return ( <>
{displayProperties && displayProperties?.key && (
{issue?.project_detail?.identifier}-{issue.sequence_id}
)} {issue?.tempId !== undefined && (
)} { handleIssues(issueToUpdate as IIssue, EIssueActions.UPDATE); }} >
{issue.name}
{!issue?.tempId ? ( <> {quickActions(!columnId && columnId === "null" ? null : columnId, issue)} ) : (
)}
); };