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

Payment

); }