import { FC } from "react"; // components import { HEADER_HEIGHT } from "../constants"; import { ChartDataType, IBlockUpdateData, IGanttBlock } from "../types"; import { GanttChartBlock } from "./block"; // types // constants export type GanttChartBlocksProps = { itemsContainerWidth: number; blockIds: string[]; getBlockById: (id: string, currentViewData?: ChartDataType | undefined) => IGanttBlock; blockToRender: (data: any) => React.ReactNode; blockUpdateHandler: (block: any, payload: IBlockUpdateData) => void; enableBlockLeftResize: boolean; enableBlockRightResize: boolean; enableBlockMove: boolean; enableAddBlock: boolean; ganttContainerRef: React.RefObject; showAllBlocks: boolean; }; export const GanttChartBlocksList: FC = (props) => { const { itemsContainerWidth, blockIds, blockToRender, blockUpdateHandler, getBlockById, enableBlockLeftResize, enableBlockRightResize, enableBlockMove, enableAddBlock, ganttContainerRef, showAllBlocks, } = props; return (
{blockIds?.map((blockId) => { return ( ); })}
); };