(styles: {
[styleName: string]: OutputStyleConfig | null;
})
| 11 | const DEFAULT_OUTPUT_STYLE_LABEL = 'Default'; |
| 12 | const DEFAULT_OUTPUT_STYLE_DESCRIPTION = 'Claude completes coding tasks efficiently and provides concise responses'; |
| 13 | function mapConfigsToOptions(styles: { |
| 14 | [styleName: string]: OutputStyleConfig | null; |
| 15 | }): OptionWithDescription[] { |
| 16 | return Object.entries(styles).map(([style, config]) => ({ |
| 17 | label: config?.name ?? DEFAULT_OUTPUT_STYLE_LABEL, |
| 18 | value: style, |
| 19 | description: config?.description ?? DEFAULT_OUTPUT_STYLE_DESCRIPTION |
| 20 | })); |
| 21 | } |
| 22 | export type OutputStylePickerProps = { |
| 23 | initialStyle: OutputStyle; |
| 24 | onComplete: (style: OutputStyle) => void; |
no test coverage detected