Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

298 B
Raw Blame
import type { Theme } from '@shared/core/app-settings';

export function getNextTheme(
  current: Theme,
  fallbackEffectiveTheme: NonNullable<Theme>
): NonNullable<Theme> {
  const effectiveTheme = current ?? fallbackEffectiveTheme;
  return effectiveTheme === 'emlight' ? 'emdark' : 'emlight';
}