Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

476 B
Raw Blame
export interface FrontendVersionInfo {
  appVersion: string | null | undefined; // undefined = not applicable, null = loading, string = loaded
  /** Backend version to display and compare, when relevant to this connection. */
  backendVersion: string | undefined;
  mismatchVersion: boolean;
}

export function useFrontendVersionInfo(
  backendVersion: string | undefined,
): FrontendVersionInfo {
  return { appVersion: undefined, backendVersion, mismatchVersion: false };
}