mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 03:20:46 +00:00
11 lines
354 B
TypeScript
11 lines
354 B
TypeScript
export function buildLineQuickReplyFallbackText(labels: readonly string[] | undefined): string {
|
|
const normalized = (labels ?? [])
|
|
.map((label) => label.trim())
|
|
.filter(Boolean)
|
|
.slice(0, 13);
|
|
if (normalized.length === 0) {
|
|
return "Choose an option.";
|
|
}
|
|
return `Options:\n${normalized.map((label) => `- ${label}`).join("\n")}`;
|
|
}
|