import { Photo } from '.'; import SiteGrid from '@/components/SiteGrid'; import ImageLarge from '@/components/ImageLarge'; import { cc } from '@/utility/css'; import Link from 'next/link'; import { TbPhotoShare } from 'react-icons/tb'; import { routeForPhoto } from '@/site/routes'; export default function PhotoLarge({ photo, priority, showShare, }: { photo: Photo priority?: boolean showShare?: boolean }) { const renderMiniGrid = (children: JSX.Element) =>
*]:sm:flex-grow', 'pr-2', )}> {children}
; return ( } contentSide={
{renderMiniGrid(<> {photo.title}
{photo.make} {photo.model}
)} {renderMiniGrid(<>
{photo.takenAtNaiveFormatted}
{showShare && } )}
} /> ); };