diff --git a/src/app/components/image-pack-view/ImagePackContent.tsx b/src/app/components/image-pack-view/ImagePackContent.tsx index be1716257..86a908c29 100644 --- a/src/app/components/image-pack-view/ImagePackContent.tsx +++ b/src/app/components/image-pack-view/ImagePackContent.tsx @@ -330,54 +330,58 @@ export const ImagePackContent = as<'div', ImagePackContentProps>( /> - - Images - - pickFiles('image/*')} - > - Select - - } - /> - - {files.map((file) => ( - - - {(uploadAtom) => ( - - )} - - - ))} - {uploadedImages.map(renderImage)} - {images.map(renderImage)} - + {images.length === 0 && !canEdit ? null : ( + + Images + {canEdit && ( + + pickFiles('image/*')} + > + Select + + } + /> + + )} + {files.map((file) => ( + + + {(uploadAtom) => ( + + )} + + + ))} + {uploadedImages.map(renderImage)} + {images.map(renderImage)} + + )} ); }