import type { Metadata } from "next"; import { ReplayPlayerLoader } from "@/components/sessions/ReplayPlayerLoader"; import { getSessionName } from "@/lib/db/queries/sessions"; export async function generateMetadata({ params }: { params: Promise<{ id: string }> }): Promise { const { id } = await params; const name = await getSessionName(Number(id)); return { title: name ? `${name} - Replay` : "Replay" }; } export default async function ReplayPage({ params }: { params: Promise<{ id: string }> }) { const { id } = await params; const name = await getSessionName(Number(id)); return (

{name ?? `Session #${id}`} - Replay

Connect the devices you want to replay onto, then match them to this session's original device slots and play its recorded intensity back live over Web Bluetooth.

); }