import { FC } from "react"; // context import { useChart } from "../hooks"; export const HourChartView: FC = () => { 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 && (
)}
))}
))}
); };