'use client'; import React from 'react'; import { X } from 'lucide-react'; interface FloatingPanelProps { title: string; isOpen: boolean; onClose: () => void; children: React.ReactNode; width?: string; height?: string; position?: { left?: number; top?: number }; } const FloatingPanel: React.FC = ({ title, isOpen, onClose, children, width = 'w-80', height = 'h-[calc(100vh-120px)]', position = { left: 24, top: 80 } }) => { if (!isOpen) return null; return (

{title}

{children}
); }; export default FloatingPanel;