11 lines
		
	
	
		
			206 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			206 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| export const themes = {
 | |
|   night: 'night',
 | |
|   default: 'default'
 | |
| };
 | |
| 
 | |
| export const invertTheme = currentTheme => (
 | |
|   !currentTheme || currentTheme === themes.default ?
 | |
|     themes.night :
 | |
|     themes.default
 | |
| );
 |