(null)
+
+ useEffect(() => {
+ if (!fileData) return
+ const blob = new Blob([fileData], { type: 'application/pdf' })
+ const url = URL.createObjectURL(blob)
+ setBlobUrl(url)
+ return () => URL.revokeObjectURL(url)
+ }, [fileData])
+
+ if (isLoading || !blobUrl) {
+ return (
+
+
+
+ )
+ }
return (