isDarkTheme = () => {
  let theme;
  try {
    theme = storage.getTheme();
    // eslint-disable-next-line no-empty
  } catch (e) { }

  if (!theme) {
    theme = getDefaultTheme();
  }

  return theme === THEMES.dark;
}
@deprecated This function is temporary while login is isolated.