import { Photo, shouldShowExifDataForPhoto } from '../photo'; import { AiFillApple } from 'react-icons/ai'; import ImageCaption from './components/ImageCaption'; import ImagePhotoGrid from './components/ImagePhotoGrid'; import ImageContainer from './components/ImageContainer'; import { OG_TEXT_BOTTOM_ALIGNMENT } from '@/app/config'; import { NextImageSize } from '@/platforms/next-image'; import { cameraFromPhoto, formatCameraText } from '@/camera'; export default function PhotoImageResponse({ photo, width, height, fontFamily, isNextImageReady = true, }: { photo: Photo width: NextImageSize height: number fontFamily: string isNextImageReady: boolean }) { const caption = [ photo.model ? formatCameraText(cameraFromPhoto(photo), 'short') : undefined, photo.focalLengthFormatted, photo.fNumberFormatted, photo.isoFormatted, ] .join(' ') .trim(); return ( {shouldShowExifDataForPhoto(photo) && }, }}> {caption} } ); };