Files
freeCodeCamp/api-server/src/common/utils/themes.js
2021-02-22 12:23:59 +05:30

10 lines
202 B
JavaScript

export const themes = {
night: 'night',
default: 'default'
};
export const invertTheme = currentTheme =>
!currentTheme || currentTheme === themes.default
? themes.night
: themes.default;