| 72 | }; |
| 73 | |
| 74 | export interface SelectOptions<Value> extends CommonOptions { |
| 75 | message: string; |
| 76 | options: Option<Value>[]; |
| 77 | initialValue?: Value; |
| 78 | maxItems?: number; |
| 79 | /** |
| 80 | * Show keyboard instructions below the option list. |
| 81 | * @default true |
| 82 | */ |
| 83 | showInstructions?: boolean; |
| 84 | } |
| 85 | |
| 86 | const computeLabel = (label: string, format: (text: string) => string) => { |
| 87 | if (!label.includes('\n')) { |
nothing calls this directly
no outgoing calls
no test coverage detected