({ info }: PreviewHtmlProps)
| 8 | }; |
| 9 | |
| 10 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected