setViewImage(rawImgUrl)}
+ />
+
+
+ {tryDecodeURIComponent(url)}
+
+
+ >
+ );
+ }
return (
- <>
- {imgUrl && }
+
+ {imgUrl && (
+ setViewImage(rawImgUrl || imgUrl)}
+ />
+ )}
(
size="T200"
priority="300"
>
- {typeof prev['og:site_name'] === 'string' && `${prev['og:site_name']} | `}
+ {typeof siteName === 'string' && `${siteName} | `}
{tryDecodeURIComponent(url)}
- {prev['og:title']}
+ {title}
- {prev['og:description']}
+ {description}
- >
+
);
};
return (
-
- {previewStatus.status === AsyncStatus.Success ? (
- renderContent(previewStatus.data)
- ) : (
-
-
-
+ <>
+
+ {previewStatus.status === AsyncStatus.Success ? (
+ renderContent(previewStatus.data)
+ ) : (
+
+
+
+ )}
+
+
+ {viewImage && (
+ }>
+
+ setViewImage(null),
+ clickOutsideDeactivates: true,
+ escapeDeactivates: stopPropagation,
+ }}
+ >
+ evt.stopPropagation()}
+ >
+ setViewImage(null)}
+ />
+
+
+
+
)}
-
+ >
);
}
);