Page MenuHomec4science

useTheme.js
No OneTemporary

File Metadata

Created
Sat, Jan 25, 10:38

useTheme.js

import * as React from 'react';
import { useTheme as useThemeSystem } from '@mui/system';
import defaultTheme from './defaultTheme';
export default function useTheme() {
const theme = useThemeSystem(defaultTheme);
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line react-hooks/rules-of-hooks
React.useDebugValue(theme);
}
return theme;
}

Event Timeline