worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
12
node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js
generated
vendored
Normal file
12
node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
import { ThemeContext } from '@mui/styled-engine';
|
||||
function isObjectEmpty(obj) {
|
||||
return Object.keys(obj).length === 0;
|
||||
}
|
||||
function useTheme(defaultTheme = null) {
|
||||
const contextTheme = React.useContext(ThemeContext);
|
||||
return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;
|
||||
}
|
||||
export default useTheme;
|
||||
Loading…
Add table
Add a link
Reference in a new issue