import { FC } from "react"; import { observer } from "mobx-react"; // hooks import { useGanttChart } from "components/gantt-chart/hooks/use-gantt-chart"; export const HourChartView: FC = observer(() => { // eslint-disable-next-line @typescript-eslint/no-unused-vars const { currentView, currentViewData, renderView } = useGanttChart(); return ( <>
{renderView && renderView.length > 0 && renderView.map((_itemRoot: any, _idxRoot: any) => (
{_itemRoot?.title}
{_itemRoot.children && _itemRoot.children.length > 0 && _itemRoot.children.map((_item: any, _idx: any) => (
{_item.title}
{_item?.today &&
}
))}
))}
); });