UNPKG

@abbl/material-calendar

Version:

Calendar component build with React and Material-UI

12 lines 606 B
import React, { useContext } from 'react'; import { EventStorageContext } from '../../common/contexts/EventStorageContext'; import { ViewContext } from '../../common/contexts/ViewContext'; import MonthGrid from './grid/MonthGrid'; function MonthView(props) { var eventStorageContext = useContext(EventStorageContext); var viewContext = useContext(ViewContext); return (React.createElement("div", null, React.createElement(MonthGrid, { date: viewContext.highlightDate, eventStorage: eventStorageContext.eventStorage }))); } export default MonthView; //# sourceMappingURL=MonthView.js.map