Spaces:
Sleeping
Sleeping
File size: 461 Bytes
2341446 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import createCache from '@emotion/cache'
const isBrowser = typeof document !== 'undefined'
export default function createEmotionCache() {
let insertionPoint
if (isBrowser) {
const emotionInsertionPoint = document.querySelector<HTMLMetaElement>(
'meta[name="emotion-insertion-point"]'
)
insertionPoint = emotionInsertionPoint ?? undefined
}
return createCache({
key: 'mui-style',
insertionPoint,
prepend: true
})
} |