diff --git a/frontend/src/components/CommandLine.tsx b/frontend/src/components/CommandLine.tsx index 6eb19c0..95bc5ac 100644 --- a/frontend/src/components/CommandLine.tsx +++ b/frontend/src/components/CommandLine.tsx @@ -1,6 +1,7 @@ import React, { useState, useRef, useMemo, useEffect } from 'react'; import type { CommandLineProps } from '../types/ui.types'; import { getCommandRegistry, type CommandDefinition } from '../services/commandRegistry'; +import { useUIMode } from '../services/uiModeService'; const defaultHistory = [ { prefix: '·' as const, text: 'Bereit · Werkzeug: Auswahl · 110 Objekte · 5 Ebenen', type: 'info' as const }, @@ -20,6 +21,9 @@ const categoryColors: Record = { }; const CommandLine: React.FC = ({ history, onCommand }) => { + const uiMode = useUIMode(); + if (uiMode === 'simple') return null; + const [input, setInput] = useState(''); const [selectedSuggestion, setSelectedSuggestion] = useState(0); const [commandHistory, setCommandHistory] = useState([]); diff --git a/frontend/src/components/RibbonBar.tsx b/frontend/src/components/RibbonBar.tsx index ec47c06..c147ee1 100644 --- a/frontend/src/components/RibbonBar.tsx +++ b/frontend/src/components/RibbonBar.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import { getUIMode, useUIMode } from '../services/uiModeService'; import type { RibbonBarProps, RibbonTab } from '../types/ui.types'; import { pluginRegistry } from '../plugins'; import { V2_TOOLS_ENABLED } from '../kernel/featureFlags'; @@ -19,6 +20,8 @@ const RibbonBar: React.FC = ({ onCanvasBgColorChange, onGridColorChange, onToggleRuler, onIsV2ToolActive, }) => { + const uiMode = useUIMode(); + return (