"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ThemeProvider = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("@emotion/react");
const styles_1 = require("@mui/material/styles");
const GlobalStyles_1 = require("../GlobalStyles");
const ThemeProvider = (props) => {
    const { children, theme, withScopedStyles = false } = props;
    return ((0, jsx_runtime_1.jsx)(styles_1.ThemeProvider, { theme: theme, children: (0, jsx_runtime_1.jsx)(react_1.ThemeProvider, { theme: theme, children: (0, jsx_runtime_1.jsx)(GlobalStyles_1.GlobalStyles, { withScopedStyles: withScopedStyles, children: children }) }) }));
};
exports.ThemeProvider = ThemeProvider;
