diff --git a/src/Highlight/wrapper.tsx b/src/Highlight/wrapper.tsx index 0a69be90..753510e3 100644 --- a/src/Highlight/wrapper.tsx +++ b/src/Highlight/wrapper.tsx @@ -20,16 +20,10 @@ export interface HighlighterWrapperProps extends DivProps { */ language: string; } - -const options: SelectProps['options'] = []; - -Object.entries(languageMap).forEach(([key, value]) => { - console.log(key, value); - options.push({ - label: key, - value: key.toLowerCase(), - }); -}); +const options: SelectProps['options'] = Object.keys(languageMap).map((key) => ({ + label: key, + value: key.toLowerCase(), +})); export const FullFeatureWrapper = memo((props) => { const {