mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
1 line
1.2 KiB
JSON
1 line
1.2 KiB
JSON
|
{"ast":null,"code":"import React from 'react';\nimport ThemeContext from './ThemeContext';\nexport default function useTheme() {\n var theme = React.useContext(ThemeContext);\n\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(theme);\n }\n\n return theme;\n}","map":{"version":3,"sources":["/app/node_modules/@material-ui/styles/esm/useTheme/useTheme.js"],"names":["React","ThemeContext","useTheme","theme","useContext","process","env","NODE_ENV","useDebugValue"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,YAAP,MAAyB,gBAAzB;AACA,eAAe,SAASC,QAAT,GAAoB;AACjC,MAAIC,KAAK,GAAGH,KAAK,CAACI,UAAN,CAAiBH,YAAjB,CAAZ;;AAEA,MAAII,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAA7B,EAA2C;AACzC;AACAP,IAAAA,KAAK,CAACQ,aAAN,CAAoBL,KAApB;AACD;;AAED,SAAOA,KAAP;AACD","sourcesContent":["import React from 'react';\nimport ThemeContext from './ThemeContext';\nexport default function useTheme() {\n var theme = React.useContext(ThemeContext);\n\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(theme);\n }\n\n return theme;\n}"]},"metadata":{},"sourceType":"module"}
|