import { Droppable } from "@hello-pangea/dnd"; //types import { IIssue, IIssueDisplayProperties, IIssueResponse } from "types"; import { EIssueActions } from "../types"; //components import { KanBanQuickAddIssueForm, KanbanIssueBlocksList } from "."; interface IKanbanGroup { groupId: string; issues: IIssueResponse; issueIds: any; sub_group_by: string | null; group_by: string | null; sub_group_id: string; isDragDisabled: boolean; handleIssues: (issue: IIssue, action: EIssueActions) => void; showEmptyGroup: boolean; quickActions: (issue: IIssue, customActionButton?: React.ReactElement) => React.ReactNode; displayProperties: IIssueDisplayProperties | null; enableQuickIssueCreate?: boolean; quickAddCallback?: ( workspaceSlug: string, projectId: string, data: IIssue, viewId?: string ) => Promise; viewId?: string; disableIssueCreation?: boolean; canEditProperties: (projectId: string | undefined) => boolean; verticalPosition: any; } export const KanbanGroup = (props: IKanbanGroup) => { const { groupId, sub_group_id, group_by, sub_group_by, issues, verticalPosition, issueIds, isDragDisabled, showEmptyGroup, handleIssues, quickActions, displayProperties, canEditProperties, enableQuickIssueCreate, disableIssueCreation, quickAddCallback, viewId, } = props; return (
{(provided: any, snapshot: any) => (
{issues && !verticalPosition ? ( ) : null} {provided.placeholder}
)}
{enableQuickIssueCreate && !disableIssueCreation && ( )}
); };