import React, { useContext } from 'react'; import { ThemeContext } from '../App'; import { ObjectInfo } from '../types'; interface ObjectInfoPanelProps { info: ObjectInfo; onClose: () => void; } const ObjectInfoPanel: React.FC = ({ info, onClose }) => { const { theme } = useContext(ThemeContext); const panelClasses = theme === 'dark' ? 'bg-black/50 border border-cyan-400/50 text-white shadow-[0_0_30px_#00ffff]' : 'bg-white/50 border border-blue-600/50 text-black shadow-[0_0_30px_#0066cc]'; const titleClasses = theme === 'dark' ? 'bg-gradient-to-r from-cyan-400 to-fuchsia-500' : 'bg-gradient-to-r from-blue-600 to-orange-500'; return (
e.stopPropagation()} >

{info.title}

{info.description}

); }; export default ObjectInfoPanel;