import { FC, MutableRefObject } from "react"; // components import { TIssue, IIssueDisplayProperties, TIssueMap, TGroupedIssues } from "@plane/types"; import { IssueBlockRoot } from "@/components/issues/issue-layouts/list"; // hooks import { TSelectionHelper } from "@/hooks/use-multiple-select"; // types import { TRenderQuickActions } from "./list-view-types"; interface Props { issueIds: TGroupedIssues | any; issuesMap: TIssueMap; groupId: string; canEditProperties: (projectId: string | undefined) => boolean; updateIssue: ((projectId: string | null, issueId: string, data: Partial) => Promise) | undefined; quickActions: TRenderQuickActions; displayProperties: IIssueDisplayProperties | undefined; containerRef: MutableRefObject; isDragAllowed: boolean; canDropOverIssue: boolean; selectionHelpers: TSelectionHelper; } export const IssueBlocksList: FC = (props) => { const { issueIds, issuesMap, groupId, updateIssue, quickActions, displayProperties, canEditProperties, containerRef, selectionHelpers, isDragAllowed, canDropOverIssue, } = props; return (
{issueIds && issueIds.length > 0 && issueIds.map((issueId: string, index: number) => ( ))}
); };