import DevicesToPay from "@/components/devices-to-pay"; import { auth } from "@/lib/auth"; import prisma from "@/lib/db"; import { cn } from "@/lib/utils"; import { headers } from "next/headers"; import React from "react"; export default async function PaymentPage({ params, }: { params: Promise<{ paymentId: string }>; }) { const session = await auth.api.getSession({ headers: await headers() }) const user = await prisma.user.findUnique({ where: { id: session?.session.userId } }) const paymentId = (await params).paymentId; const payment = await prisma.payment.findUnique({ where: { id: paymentId, }, include: { devices: true, }, }); const formula = await prisma.billFormula.findFirst(); return (