import React from 'react'; import type { DiffEditorProps, DiffOnMount } from '@monaco-editor/react'; import { loader } from '@monaco-editor/react'; import { darkMode } from '@teambit/base-ui.theme.dark-theme'; import type { EditorSettingsState } from '../code-compare-editor-settings'; loader.config({ paths: { vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.48.0/min/vs' } }); export type CodeCompareEditorProps = { language: string; handleEditorDidMount: DiffOnMount; Loader: React.ReactNode; modifiedFileContent?: string; originalFileContent?: string; originalPath: string; modifiedPath: string; DiffEditor: React.FC; fullScreen?: boolean; } & EditorSettingsState; export function CodeCompareEditor({ modifiedFileContent, originalFileContent, originalPath, modifiedPath, language, handleEditorDidMount, ignoreWhitespace, wordWrap, diffOnly, editorViewMode, Loader, DiffEditor, fullScreen, }: CodeCompareEditorProps) { return ( }> ); }