mirror of
https://github.com/SomboChea/ui
synced 2024-11-16 19:24:28 +07:00
14 lines
426 B
TypeScript
14 lines
426 B
TypeScript
|
import React from 'react';
|
||
|
import { ThemeProvider as MuiThemeProvider } from '@material-ui/core/styles';
|
||
|
import { ThemeProvider as EmotionThemeProvider } from 'emotion-theming';
|
||
|
|
||
|
import theme from './theme';
|
||
|
|
||
|
const ThemeProvider: React.FC = ({ children }) => (
|
||
|
<EmotionThemeProvider theme={theme}>
|
||
|
<MuiThemeProvider theme={theme}>{children}</MuiThemeProvider>
|
||
|
</EmotionThemeProvider>
|
||
|
);
|
||
|
|
||
|
export default ThemeProvider;
|