export function connectionUsesCrawler(devMode: boolean) {
  return devMode
}

export function connectionModeLabel(devMode: boolean) {
  return devMode ? '開發模式（爬蟲）' : '正式模式（API）'
}

export function connectionModeDescription(devMode: boolean) {
  return devMode
    ? '搜尋、發文、留言素材都走 Chrome session + Playwright 爬蟲。請先同步 Chrome 登入態。'
    : '搜尋、發文、留言都走 Threads 官方 API。不需 Chrome session。'
}

export function connectionReadyLabel(devMode: boolean, browserConnected: boolean, apiConnected: boolean) {
  if (devMode) {
    return browserConnected ? '爬蟲 Session 已就緒' : '請同步 Chrome Session'
  }
  return apiConnected ? 'Threads API 已就緒' : '請設定 Threads API'
}