import '../../../preact/compat/dist/compat.module.mjs';
import THEME_ID from './identifier.mjs';
import { jsx as u } from '../../../preact/jsx-runtime/dist/jsxRuntime.module.mjs';
import ThemeProvider from '../../system/esm/ThemeProvider/ThemeProvider.mjs';

function ThemeProviderNoVars({
  theme: themeInput,
  ...props
}) {
  const scopedTheme = THEME_ID in themeInput ? themeInput[THEME_ID] : undefined;
  return /*#__PURE__*/u(ThemeProvider, {
    ...props,
    themeId: scopedTheme ? THEME_ID : undefined,
    theme: scopedTheme || themeInput
  });
}

export { ThemeProviderNoVars as default };
//# sourceMappingURL=ThemeProviderNoVars.mjs.map
