import type { LucideIcon } from "lucide-react"; interface WidgetTitleProps { title: string | null | undefined; icon?: React.ReactElement; fallback?: string; } export function WidgetTitle({ title, icon, fallback }: WidgetTitleProps) { const label = title || fallback; if (!label) return null; return (
{icon && ( {icon} )} {label}
); }