9 lines
304 B
TypeScript
9 lines
304 B
TypeScript
import { createMuiTheme, ThemeOptions } from '@material-ui/core';
|
|
import ValidConfig from './ThemeConfig';
|
|
import ThemeType from './ThemeType';
|
|
|
|
export default function CreateTheme(themeType = ThemeType.v1): ThemeOptions {
|
|
const theme = { ...createMuiTheme(ValidConfig[themeType]) };
|
|
return theme;
|
|
}
|