Add image upload function

This commit is contained in:
2025-06-26 21:21:52 +02:00
parent d608267a62
commit 0ccc01fb97
28 changed files with 4523 additions and 26 deletions

View File

@ -0,0 +1,22 @@
import EditGalleryForm from "@/components/galleries/edit/EditGalleryForm";
import prisma from "@/lib/prisma";
export default async function GalleriesEditPage({ params }: { params: { id: string } }) {
const { id } = await params;
const gallery = await prisma.gallery.findUnique({
where: {
id,
},
include: {
albums: true
}
});
return (
<div>
<h1 className="text-2xl font-bold mb-4">Edit gallery</h1>
{gallery ? <EditGalleryForm gallery={gallery} /> : 'Gallery not found...'}
</div>
);
}