import { jsx as _jsx } from "react/jsx-runtime";
import { ThemeProvider as EmotionThemeProvider } from '@emotion/react';
import { ThemeProvider as MuiThemeProvider } from '@mui/material/styles';
import { GlobalStyles } from '../GlobalStyles';
export const ThemeProvider = (props) => {
    const { children, theme, withScopedStyles = false } = props;
    return (_jsx(MuiThemeProvider, { theme: theme, children: _jsx(EmotionThemeProvider, { theme: theme, children: _jsx(GlobalStyles, { withScopedStyles: withScopedStyles, children: children }) }) }));
};
