Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

582 B
Raw Blame
export type ControlPanelWindowMode = "compact" | "restore";

export interface SettledControlPanelWindowState {
  isControlPanel: boolean;
  isLoading: boolean;
  isWaitingForPolicyStart: boolean;
  showOnboarding: boolean;
  needsReauth: boolean;
}

export function resolveSettledControlPanelWindowMode(
  state: SettledControlPanelWindowState
): ControlPanelWindowMode | null {
  if (
    !state.isControlPanel ||
    state.isLoading ||
    state.isWaitingForPolicyStart ||
    state.showOnboarding
  ) {
    return null;
  }

  return state.needsReauth ? "compact" : "restore";
}