import { useState } from "react"; import CitationPopover from "./CitationPopover"; import SourceExpander from "./SourceExpander"; function WebSourcesList({ sources }) { const webSources = sources?.filter((s) => s.source_type === "web") ?? []; if (webSources.length === 0) return null; return (
{isUser ? (
message.content
) : message.loading && !message.content ? (
) : (
<>