import { For, Show } from "solid-js"; import { payloadPoints, payloadText } from "@/components/notes/rag-output-document"; /** Render the useful parts of the AI service's open payload without exposing a JSON dump first. */ export function RagOutputContent(props: { payload: unknown }) { const summary = () => payloadText(props.payload); const points = () => payloadPoints(props.payload); return (
{(text) =>

{text()}

}
0}>
{JSON.stringify(props.payload, null, 2)}
); }