MCPcopy Create free account
hub / github.com/codeaashu/claude-code / mapConfigsToOptions

Function mapConfigsToOptions

src/components/OutputStylePicker.tsx:13–21  ·  view source on GitHub ↗
(styles: {
  [styleName: string]: OutputStyleConfig | null;
})

Source from the content-addressed store, hash-verified

11const DEFAULT_OUTPUT_STYLE_LABEL = 'Default';
12const DEFAULT_OUTPUT_STYLE_DESCRIPTION = 'Claude completes coding tasks efficiently and provides concise responses';
13function 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}
22export type OutputStylePickerProps = {
23 initialStyle: OutputStyle;
24 onComplete: (style: OutputStyle) => void;

Callers 1

OutputStylePickerFunction · 0.85

Calls 1

entriesMethod · 0.80

Tested by

no test coverage detected