summaryrefslogtreecommitdiffhomepage
path: root/src/features/chat/logic/composer.ts
blob: e56a007a7f73af7006e1988474f870f54675ab0d (plain)
1
2
3
4
5
6
7
8
9
10
11
/** Stop still uses the same action; the backend carries queued input into a new turn. */
export function stopButtonLabels(queuedMessageCount: number | undefined) {
  if (queuedMessageCount !== undefined && queuedMessageCount >= 1) {
    return {
      text: "Flush",
      ariaLabel: "Flush",
      title: "Stop the current response and start the queued message now",
    };
  }
  return { text: "Stop", ariaLabel: "Stop generation", title: undefined };
}