You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516
  1. import { authScopeStringGetHelper } from "util/authScopeHelpers";
  2. import primary from "./primaryTheme/primaryTheme";
  3. import secondary from "./secondaryTheme/secondaryTheme";
  4. import { DARK_THEME } from "constants/themeConstants";
  5. export let getTheme = () => {
  6. let selectedThemeStorage = authScopeStringGetHelper("colorMode");
  7. if (selectedThemeStorage === DARK_THEME) {
  8. return { ...primary };
  9. }
  10. return { ...secondary };
  11. };
  12. let selectedTheme = getTheme();
  13. export default selectedTheme;