import type { FC } from "react"; // components import type { IBlockUpdateData, IGanttBlock } from "@plane/types"; import RenderIfVisible from "@/components/core/render-if-visible-HOC"; // hooks import { BlockRow } from "@/components/gantt-chart/blocks/block-row"; import { BLOCK_HEIGHT } from "@/components/gantt-chart/constants"; import type { TSelectionHelper } from "@/hooks/use-multiple-select"; // types export type GanttChartBlocksProps = { blockIds: string[]; blockUpdateHandler: (block: any, payload: IBlockUpdateData) => void; handleScrollToBlock: (block: IGanttBlock) => void; enableAddBlock: boolean | ((blockId: string) => boolean); showAllBlocks: boolean; selectionHelpers: TSelectionHelper; ganttContainerRef: React.RefObject; }; export const GanttChartRowList: FC = (props) => { const { blockIds, blockUpdateHandler, handleScrollToBlock, enableAddBlock, showAllBlocks, selectionHelpers, ganttContainerRef, } = props; return (
{blockIds?.map((blockId) => ( <> } shouldRecordHeights={false} > ))}
); };