UNPKG

@mui/material-nextjs

Version:

Collection of utilities for integration between Material UI and Next.js.

14 lines 531 B
import * as React from 'react'; import { CacheProvider } from '@emotion/react'; import createEmotionCache from './createCache'; import { jsx as _jsx } from "react/jsx-runtime"; var defaultEmotionCache = createEmotionCache(); export function AppCacheProvider(_ref) { var _ref$emotionCache = _ref.emotionCache, emotionCache = _ref$emotionCache === void 0 ? defaultEmotionCache : _ref$emotionCache, children = _ref.children; return /*#__PURE__*/_jsx(CacheProvider, { value: emotionCache, children: children }); }