// Gallery.jsx - a grid of thumbnails for folders that are mostly pictures.
//
// The thumbnail is the file itself: bkn has no image resizing, so a gallery of
// 40 photos is 40 full downloads. loading="lazy" keeps that to what is on
// screen, and the grid caps how many are on screen at once. If galleries of
// hundreds of photos become normal, the fix is a resize endpoint in bkn, not a
// cleverer grid.
function Gallery({ entries, busy, onOpen, onPreview, downloadURL, selected, onToggle }) {
if (busy) {
return (