MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / PreviewHtml

Function PreviewHtml

app/components/Preview/Types/PreviewHtml.tsx:10–31  ·  view source on GitHub ↗
({ info }: PreviewHtmlProps)

Source from the content-addressed store, hash-verified

8};
9
10export function PreviewHtml({ info }: PreviewHtmlProps) {
11 return (
12 <PreviewBox link={info.url}>
13 <div>
14 {info.title && (
15 <Title>
16 {info.icon && (
17 <img src={info.icon.url} className="w-4 h-4 inline mr-1" alt="" />
18 )}
19 <span className="inline">{info.title}</span>
20 </Title>
21 )}
22 {info.description && <Body>{info.description}</Body>}
23 </div>
24 {info.image && (
25 <div>
26 <img className="block" src={info.image?.url} alt={info.image?.alt} />
27 </div>
28 )}
29 </PreviewBox>
30 );
31}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected