(label: string, format: (text: string) => string)
| 34 | showInstructions?: boolean; |
| 35 | } |
| 36 | const computeLabel = (label: string, format: (text: string) => string) => { |
| 37 | return label |
| 38 | .split('\n') |
| 39 | .map((line) => format(line)) |
| 40 | .join('\n'); |
| 41 | }; |
| 42 | |
| 43 | export const multiselect = <Value>(opts: MultiSelectOptions<Value>) => { |
| 44 | const opt = ( |