import { createTheme } from '@mui/material/styles' ; type ThemeMode = 'light' | 'dark' ; const getTheme = ( mode ) => { let theme = createTheme ( { palette : { mode , common : { black : '#242424' , } , } , } ) ; theme = createTheme ( theme , { } ) ; return theme ; } ; export default getTheme ;