import { PhotoView } from "$lexicon/types/social/grain/photo/defs.ts"; import { getOrderedExifData } from "../lib/photo.ts"; import { Dialog } from "./Dialog.tsx"; export function PhotoExifDialog({ photo, }: Readonly<{ photo: PhotoView; }>) { return ( Camera Settings
{photo.alt}
{photo.exif && (
{getOrderedExifData(photo).map(({ displayKey, value }) => (
{displayKey}
{String(value)}
))}
)} Close
); }