import { getServerSession } from 'next-auth'; import { authOptions } from '@/lib/auth'; import { prisma } from '@/lib/prisma'; import NewBookingForm from '@/components/NewBookingForm'; import DashboardSidebar from '@/components/DashboardSidebar'; export default async function NewBookingPage() { const session = await getServerSession(authOptions); const locations = await prisma.location.findMany({ where: { active: true }, include: { photoboxes: { where: { active: true }, }, }, orderBy: { name: 'asc' }, }); return (