import type { OrchestrationV2UserMessageInputIntent } from "@t3tools/contracts";
export interface UserMessageIntentBadgePresentation {
readonly label: string;
readonly accessibilityLabel: string;
}
export function resolveUserMessageIntentBadge(
intent: OrchestrationV2UserMessageInputIntent | undefined,
): UserMessageIntentBadgePresentation | null {
switch (intent) {
case "steer":
return {
label: "Steer",
accessibilityLabel: "Steered the active turn",
};
case "promoted_queued_to_steer":
return {
label: "Steer",
accessibilityLabel: "Originally queued, then promoted to steer the active turn",
};
case "queued_turn":
case "turn_start":
case undefined:
return null;
}
}