feat: enhance article component with favicon support and layout adjustment

This commit is contained in:
Anish Sarkar 2026-02-11 21:33:46 +05:30
parent 25c1fa0f49
commit be1b6f370f
2 changed files with 42 additions and 23 deletions

View file

@ -87,18 +87,12 @@ function ScrapeCancelledState({ url }: { url: string }) {
* Parsed Article component with error handling
*/
function ParsedArticle({ result }: { result: unknown }) {
const article = parseSerializableArticle(result);
const { description, ...article } = parseSerializableArticle(result);
return (
<Article
{...article}
maxWidth="480px"
responseActions={[{ id: "open", label: "Open Link", variant: "default" }]}
onResponseAction={(id) => {
if (id === "open" && article.href) {
window.open(article.href, "_blank", "noopener,noreferrer");
}
}}
/>
);
}