feat(chat): blur locked image previews
This commit is contained in:
@@ -32,7 +32,9 @@ export function ImageBubble({
|
||||
return (
|
||||
<>
|
||||
<div
|
||||
className={styles.bubble}
|
||||
className={`${styles.bubble} ${
|
||||
imagePaywalled ? styles.paywalled : ""
|
||||
}`}
|
||||
onClick={() => setOpen(true)}
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
@@ -56,6 +58,9 @@ export function ImageBubble({
|
||||
onError={() => setError(true)}
|
||||
/>
|
||||
)}
|
||||
{!error && imagePaywalled ? (
|
||||
<div className={styles.paywallOverlay} aria-hidden="true" />
|
||||
) : null}
|
||||
</div>
|
||||
{open && (
|
||||
<FullscreenImageViewer
|
||||
|
||||
Reference in New Issue
Block a user