import React from 'react';
import { ThemeContext, LocaleContext } from '../Contexts';
import { DefaultTheme } from '../Themes';
import { DefaultLocale } from '../Locales';
import BaseCalendar from './BaseCalendar';
const Providers = ({ theme, locale, ...otherProps }) => {
    return (<LocaleContext.Provider value={locale ?? DefaultLocale}>
      <ThemeContext.Provider value={theme ?? DefaultTheme}>
        <BaseCalendar {...otherProps}/>
      </ThemeContext.Provider>
    </LocaleContext.Provider>);
};
export default React.memo(Providers);
//# sourceMappingURL=Providers.js.map