exportTheme = (themeId) => {
  const themes = window.store.getSidebarList(settingMap.terminalThemes)
  const theme = themes.find(d => d.id === themeId)
  if (!theme) {
    log.error('export error', themeId)
    return
  }
  const text = convertThemeToText(theme, true)
  download(
    `${theme.name}.txt`,
    text
  )
}
export theme as txt
@param {string} themeId