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