export const dynamic = 'force-dynamic'; import React from 'react'; import Link from 'next/link'; import { notFound } from 'next/navigation'; import { prisma } from '@/lib/prisma'; interface PageProps { params: Promise<{ tenant: string }>; } export default async function TenantClassesPage({ params }: PageProps) { const { tenant: tenantSlug } = await params; const tenant = await prisma.tenant.findUnique({ where: { slug: tenantSlug }, include: { classSessions: { orderBy: { startTime: 'asc' }, include: { bookings: { include: { user: true }, }, }, }, }, }); if (!tenant) { notFound(); } return (
Browse and join interactive, real-time fitness sessions powered by unbranded WebRTC.
No classes currently scheduled for this gym.
Schedule Class in Instructor Portal{session.description}
)}