diff --git a/src/photo/PhotoHeader.tsx b/src/photo/PhotoHeader.tsx index 863ce75c..a0e33a56 100644 --- a/src/photo/PhotoHeader.tsx +++ b/src/photo/PhotoHeader.tsx @@ -54,7 +54,11 @@ export default function PhotoHeader({ (indexNumber || (selectedPhotoIndex ?? 0 + 1)) + ' of ' + (count ?? photos.length); - const isPhotoSet = selectedPhotoIndex === undefined; + const headerType = selectedPhotoIndex === undefined + ? 'photo-set' + : entity + ? 'photo-detail-with-entity' + : 'photo-detail'; const renderPrevNext = () => - {entity ?? (selectedPhoto !== undefined && { selectedPhoto.title || formatDate(selectedPhoto.takenAt, 'tiny') } )} - - + {/* Content B: Filter Set Meta or Photo Pagination */} +
{entity && <> - {isPhotoSet + {headerType === 'photo-set' ? <> {entityDescription} {sharePath && @@ -130,9 +147,12 @@ export default function PhotoHeader({ {entityVerb} {paginationLabel} } } - +
+ {/* Content C: Nav */}
{selectedPhoto