MCPcopy Index your code
hub / github.com/AnswerOverflow/AnswerOverflow / EmbedText

Function EmbedText

packages/ui/src/message/Embed.tsx:8–20  ·  view source on GitHub ↗
(props: {
	text: string | undefined;
	className?: string;
})

Source from the content-addressed store, hash-verified

6import { MessageProps } from './props';
7
8const EmbedText = async (props: {
9 text: string | undefined;
10 className?: string;
11}) => {
12 if (!props.text) return null;
13 const textToHTML = await parse(props.text);
14
15 return (
16 <div className={cn(`font-light text-primary`, props.className)}>
17 {textToHTML}
18 </div>
19 );
20};
21
22const EmbedField = (
23 props: NonNullable<EmbedProps['embed']['fields']>[number],

Callers

nothing calls this directly

Calls 2

cnFunction · 0.90
parseFunction · 0.85

Tested by

no test coverage detected