// react beautiful dnd import { Draggable } from "@hello-pangea/dnd"; // components import { KanBanProperties } from "./properties"; interface IssueBlockProps { sub_group_id: string; columnId: string; issues: any; isDragDisabled: boolean; handleIssues?: (sub_group_by: string | null, group_by: string | null, issue: any) => void; display_properties: any; } export const IssueBlock = ({ sub_group_id, columnId, issues, isDragDisabled, handleIssues, display_properties, }: IssueBlockProps) => ( <> {issues && issues.length > 0 ? ( <> {issues.map((issue: any, index: any) => ( {(provided: any, snapshot: any) => (
{display_properties && display_properties?.key && (
ONE-{issue.sequence_id}
)}
{issue.name}
)}
))} ) : ( !isDragDisabled && (
{/*
Drop here
*/}
) )} );