/** * @license * SPDX-License-Identifier: Apache-2.0 */ /* tslint:disable */ import React from 'react'; interface WindowProps { title: string; children: React.ReactNode; onClose: () => void; // This prop remains, though its direct trigger (the X button) is removed. isAppOpen: boolean; appId?: string | null; onToggleParameters: () => void; onExitToDesktop: () => void; isParametersPanelOpen?: boolean; } const MenuItem: React.FC<{ children: React.ReactNode; onClick?: () => void; className?: string; }> = ({children, onClick, className}) => ( { if (e.key === 'Enter' || e.key === ' ') onClick?.(); }} tabIndex={0} role="button"> {children} ); export const Window: React.FC = ({ title, children, onClose, isAppOpen, onToggleParameters, onExitToDesktop, isParametersPanelOpen, }) => { return (
{/* Title Bar */}
{title} {/* "X" button removed from here */}
{/* Menu Bar */}
{!isParametersPanelOpen && ( Parameters )} {isAppOpen && ( Exit to Desktop )}
{/* Content */}
{children}
); };