Files
lcbp3/frontend/app/(dashboard)/rfas/[id]/page.tsx
admin 18f78f8a5e
Some checks failed
Spec Validation / validate-markdown (push) Has been cancelled
Spec Validation / validate-diagrams (push) Has been cancelled
Spec Validation / check-todos (push) Has been cancelled
251205:0000 Just start debug backend/frontend
2025-12-05 00:32:02 +07:00

23 lines
419 B
TypeScript

import { rfaApi } from "@/lib/api/rfas";
import { RFADetail } from "@/components/rfas/detail";
import { notFound } from "next/navigation";
export default async function RFADetailPage({
params,
}: {
params: { id: string };
}) {
const id = parseInt(params.id);
if (isNaN(id)) {
notFound();
}
const rfa = await rfaApi.getById(id);
if (!rfa) {
notFound();
}
return <RFADetail data={rfa} />;
}