UNPKG

525 BJavaScriptView Raw
1'use client';
2
3import * as React from 'react';
4import { ThemeProvider as SystemThemeProvider } from '@mui/system';
5import THEME_ID from "./identifier.js";
6import { jsx as _jsx } from "react/jsx-runtime";
7export default function ThemeProviderNoVars({
8 theme: themeInput,
9 ...props
10}) {
11 const scopedTheme = THEME_ID in themeInput ? themeInput[THEME_ID] : undefined;
12 return /*#__PURE__*/_jsx(SystemThemeProvider, {
13 ...props,
14 themeId: scopedTheme ? THEME_ID : undefined,
15 theme: scopedTheme || themeInput
16 });
17}
\No newline at end of file