// app/components/admin/sidebar-widgets/CustomHtmlWidget.tsx
'use client';
import { CustomHtmlWidgetProps } from '@/lib/page-builder/container-types';

export default function CustomHtmlWidget({ title, html = '' }: CustomHtmlWidgetProps) {
  return (
    <div className="sidebar-widget">
      {title && <h3 className="text-base font-semibold text-gray-900 mb-3 pb-2 border-b">{title}</h3>}
      <div
        className="prose prose-sm max-w-none text-gray-700"
        dangerouslySetInnerHTML={{ __html: html }}
      />
    </div>
  );
}
