import { Photo, PhotoDateRange } from '@/photo'; import PhotoTag from './PhotoTag'; import { descriptionForTaggedPhotos, isTagFavs } from '.'; import PhotoHeader from '@/photo/PhotoHeader'; import FavsTag from './FavsTag'; import { AI_TEXT_GENERATION_ENABLED, APP_TEXT } from '@/app/config'; export default function TagHeader({ tag, photos, selectedPhoto, indexNumber, count, dateRange, }: { tag: string photos: Photo[] selectedPhoto?: Photo indexNumber?: number count?: number dateRange?: PhotoDateRange }) { return ( : } entityVerb={APP_TEXT.category.tagged} entityDescription={descriptionForTaggedPhotos(photos, undefined, count)} photos={photos} selectedPhoto={selectedPhoto} indexNumber={indexNumber} count={count} dateRange={dateRange} hasAiTextGeneration={AI_TEXT_GENERATION_ENABLED} includeShareButton /> ); }