import Link from "next/link"; import { ArrowLeft } from "lucide-react"; import { getNeighborImageIds } from "@/lib/db/queries"; import { ImageNav } from "@/components/image/ImageNav"; export default async function ImageLayout({ children, params, }: { children: React.ReactNode; params: Promise<{ id: string }>; }) { const { id } = await params; const numId = Number(id); const neighbors = Number.isFinite(numId) ? getNeighborImageIds(numId) : { prev: null, next: null }; return (
Back to library
{children}
); }