// Copyright (c) 2025-2026, RTE (https://www.rte-france.com) // This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0. // If a copy of the Mozilla Public License, version 2.0 was not distributed with this file, // you can obtain one at http://mozilla.org/MPL/2.0/. // SPDX-License-Identifier: MPL-2.0 import React from 'react'; import type { TabId } from '../types'; import { colors } from '../styles/tokens'; /** * In-place stand-in shown inside `VisualizationPanel` when a tab has * been detached into a separate browser window. Surfaces the tab * label, a "Focus window" shortcut and a "Reattach" action so the * operator can recover from a hidden popup or pull the tab back into * the main window. */ const DetachedPlaceholder: React.FC<{ tabId: TabId; label: string; accentColor: string; onFocusDetachedTab: (tab: TabId) => void; onReattachTab: (tab: TabId) => void; }> = ({ tabId, label, accentColor, onFocusDetachedTab, onReattachTab }) => (