import { SectionCard } from "../components/SectionCard"; import { useWidgetData } from "../hooks/useWidgets"; import type { WidgetInstance } from "../types"; interface Props { widget: WidgetInstance; refreshIntervalMs: number; description?: string; } export function StaticWidget({ widget, refreshIntervalMs, description, }: Props) { const { data } = useWidgetData(widget.id, refreshIntervalMs); const text = data?.data?.text as string | undefined; return ( {text ? (

{text}

) : (

No content configured.

)}
); }