import { Default } from './default'; import { Theme1 } from './theme1'; import { Theme2 } from './theme2'; import { Theme3 } from './theme3'; import { Theme4 } from './theme4'; import { Theme5 } from './theme5'; import { Theme6 } from './theme6'; import { Theme7 } from './theme7'; import { Theme8 } from './theme8'; function Theme( colors: any, presetColor: 'theme1' | 'theme2' | 'theme3' | 'theme4' | 'theme5' | 'theme6' | 'theme7' | 'theme8' | 'default', mode: any ) { switch (presetColor) { case 'theme1': return Theme1(colors, mode); case 'theme2': return Theme2(colors, mode); case 'theme3': return Theme3(colors, mode); case 'theme4': return Theme4(colors, mode); case 'theme5': return Theme5(colors, mode); case 'theme6': return Theme6(colors, mode); case 'theme7': return Theme7(colors, mode); case 'theme8': return Theme8(colors, mode); default: return Default(colors); } } export { Theme };