// hooks import { useChart } from "components/gantt-chart"; // helpers import { cn } from "helpers/common.helper"; // types import { IMonthBlock } from "../../views"; export const MonthChartView = () => { // chart hook const { currentViewData, renderView } = useChart(); const monthBlocks: IMonthBlock[] = renderView; return (
{monthBlocks?.map((block, rootIndex) => (
{block?.children?.map((monthDay, index) => (
{block.monthData.shortTitle} {monthDay?.dayData?.shortTitle[0]} {monthDay?.day}
))}
))}
); };