UNPKG

@abbl/material-calendar

Version:

Calendar component build with React and Material-UI

15 lines (14 loc) 682 B
import React, { ComponentClass, FunctionComponent } from 'react'; import { LocaleSource } from '../../locale/Localization'; import { CalendarView } from '../api/CalendarView'; export interface CalendarContextStructure { locale: string; localeSource: LocaleSource; globalEventPopoutContent?: FunctionComponent<any> | ComponentClass<any, any>; views: CalendarView[]; setLocale: (locale: string) => void; setLocaleSource: (localeSource: LocaleSource) => void; setViews: (views: CalendarView[]) => void; } export declare const DEFAULT_CALENDAR_CONTEXT: CalendarContextStructure; export declare const CalendarContext: React.Context<CalendarContextStructure>;