import React from 'react';

import ThemeContext from "./ThemeContext";
import themes from './themes';
/**
 * @component
 * @category LayerSwitcher
 */
function ThemeProvider (props){

    const { children, mode } = props;

    return (
		<ThemeContext.Provider value={themes[mode]}>
			{children}
		</ThemeContext.Provider>
	);
};

export default ThemeProvider;