'use client' import { cn } from '@/lib/utils' import { X, RotateCcw, Moon } from 'lucide-react' import Image from 'next/image' interface PanelWrapperProps { title: string icon?: string onClose?: () => void onReset?: () => void children: React.ReactNode className?: string width?: number | string } export function PanelWrapper({ title, icon, onClose, onReset, children, className, width = 320, // default width }: PanelWrapperProps) { return (
{/* Header */}
{icon && ( )}

{title}

{onReset && ( )} {onClose && ( )}
{/* Content */}
{children}
) }