/** * Copyright (c) 2020-present, Goldman Sachs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { observer } from 'mobx-react-lite'; import { clsx, ControlledDropdownMenu, ContextMenu, TimesIcon, MenuContentItem, MenuContent, } from '@finos/legend-art'; import { filterByType } from '@finos/legend-shared'; import { EntityDiffViewState, DIFF_VIEW_MODE, } from '../../stores/editor/editor-state/entity-diff-editor-state/EntityDiffViewState.js'; import { EntityDiffView } from '../editor/editor-group/diff-editor/EntityDiffView.js'; import type { EditorState } from '../../stores/editor/editor-state/EditorState.js'; import { useEditorStore } from '../editor/EditorStoreProvider.js'; import { forwardRef } from 'react'; import { EditorDiffViewerState } from '../../stores/editor/editor-state/diff-viewer-state/EditorDiffViewerState.js'; import { ProjectConfigDiffView } from '../editor/editor-group/diff-editor/ProjectConfigDiffView.js'; import { ProjectConfigurationDiffEditorState } from '../../stores/editor/editor-state/diff-viewer-state/ProjectConfigurationDiffEditorState.js'; const ProjectReviewerPanelSplashScreen: React.FC = () => (
); const ProjectReviewerPanelHeaderTabContextMenu = observer( forwardRef< HTMLDivElement, { editorState: EditorState; } >(function ReviewPanelHeaderTabContextMenu(props, ref) { const { editorState } = props; const editorStore = useEditorStore(); const close = (): void => editorStore.tabManagerState.closeTab(editorState); const closeOthers = (): void => editorStore.tabManagerState.closeAllTabs(); const closeAll = (): void => editorStore.tabManagerState.closeAllTabs(); return (