import type { Metadata } from "next"; import { prisma } from "@/lib/prisma"; import { PageHero } from "@/components/page-hero"; import { GalleryGrid } from "@/components/gallery-grid";
export const metadata:Metadata={title:"Installation Gallery"}; export default async function Gallery(){let images:any[]=[];try{images=await prisma.galleryImage.findMany({orderBy:{createdAt:"desc"}})}catch{}return <><PageHero eyebrow="Our work" title="Security systems in action." copy="A look at surveillance projects delivered by our installation specialists."/><section className="section"><div className="container">{images.length?<GalleryGrid images={images}/>:<p className="rounded-2xl bg-slate-50 p-10 text-center text-muted">Project images will appear here soon.</p>}</div></section></>}
