"use client";

import type { WidgetConfigPanelProps } from "../types";

/**
 * Fallback panel for widgets that do not yet expose dedicated settings.
 * Register a real Panel in the widget config registry when options are added.
 */
export function DefaultConfigPanel({ widget }: WidgetConfigPanelProps) {
  return (
    <div className="rounded-lg border border-dashed bg-card/60 p-4">
      <p className="font-medium text-sm">{widget?.name ?? "Widget"}</p>
      <p className="mt-2 text-muted-foreground text-sm leading-relaxed">
        This widget has no additional configuration yet. Use the checkbox on the card to enable or
        disable it on your dashboard.
      </p>
    </div>
  );
}
