import { FC } from "react"; // context import { useChart } from "../hooks"; export const DayChartView: FC = () => { // eslint-disable-next-line @typescript-eslint/no-unused-vars const { currentView, currentViewData, renderView, dispatch, allViews } = useChart(); 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 &&
}
))}
))}
); };