/**
 * Opens the "set a Lexoffice booking category?" modal and resolves with the caller's
 * choice: a categoryId string (book with that category), null (skip — plain upload,
 * today's behaviour), or undefined (cancelled — caller should not upload at all).
 */
export const promptLexofficeCategory = (count: number): Promise<string | null | undefined> => {
  return new Promise((resolve) => {
    useLexofficeCategoryParam().value = { count, resolve }
    useLexofficeCategoryModal().value = true
  })
}
