← Public packages
@kentcdodds/photo-portfolio
A fast, photo-first portfolio site you update by chatting with your agent: galleries, about, contact, and one-step rollback.
Files
import type { Photo, SiteConfig } from '../../src/domain/types.ts'
/** "Canon EOS R6 · 50mm · ƒ/2.8 · 1/250s · ISO 100" when the owner turned camera details on. */
export function cameraDetails(config: SiteConfig, photo: Photo) {
if (!config.showCameraDetails || !photo.credits) return undefined
const parts = [
photo.credits.camera,
photo.credits.lens,
photo.credits.exposure,
].filter(Boolean)
return parts.length > 0 ? parts.join(' · ') : undefined
}