diff --git a/src/components/ImageBlock.tsx b/src/components/ImageBlock.tsx index f6636a2..87776a1 100644 --- a/src/components/ImageBlock.tsx +++ b/src/components/ImageBlock.tsx @@ -1,5 +1,5 @@ import { useState, useEffect, useCallback } from 'react'; -import { X } from 'lucide-react'; +import { X, ImageOff } from 'lucide-react'; interface ImageBlockProps { src: string; @@ -43,6 +43,17 @@ function Lightbox({ src, alt, onClose }: ImageBlockProps & { onClose: () => void export function ImageBlock({ src, alt }: ImageBlockProps) { const [lightbox, setLightbox] = useState(false); + const [error, setError] = useState(false); + const [loading, setLoading] = useState(true); + + if (error) { + return ( +