diff --git a/web/src/pages/index.tsx b/web/src/pages/index.tsx index a770c5d..ac7a318 100644 --- a/web/src/pages/index.tsx +++ b/web/src/pages/index.tsx @@ -60,29 +60,34 @@ const ShowCitation: React.FC<{citation: Citation, i: number}> = ({citation, i}) c_str += " - " + citation.date; return ( - + [{i + 1}]

{c_str}

-
+ ); }; const ShowInTextCitation: React.FC<{citation: Citation, i: number}> = ({citation, i}) => { return ( - + [{i + 1}] - + ); }; -const ShowEntry: React.FC<{entry: Entry}> = ({entry}) => { - - // user message - if (entry.role === "user") { - return (

{entry.content}

); - } +const A: React.FC<{href: string, className?: string, children: React.ReactNode}> = ({href, className, children}) => { + return href && href !== "" ? ( + + {children} + + ) : ( + + {children} + + ); +}