24 lines
705 B
TypeScript
24 lines
705 B
TypeScript
import { AdminForum_LihatSemuaKomentar } from "@/app_modules/admin/forum";
|
|
import { adminForum_getOnePostingById } from "@/app_modules/admin/forum/fun/get/get_one_posting_by_id";
|
|
|
|
export default async function Page({ params }: { params: { id: string } }) {
|
|
let postingId = params.id;
|
|
|
|
// const listKomentar = await adminForum_getListKomentarById({
|
|
// postingId: postingId,
|
|
// page: 1,
|
|
// });
|
|
const dataPosting = await adminForum_getOnePostingById(postingId);
|
|
// const countKomentar = await adminForum_countKomentarByPostingId({
|
|
// postingId: postingId,
|
|
// });
|
|
|
|
return (
|
|
<>
|
|
<AdminForum_LihatSemuaKomentar
|
|
dataPosting={dataPosting as any}
|
|
/>
|
|
</>
|
|
);
|
|
}
|