## feat - Tampilan forum - Tampilan forumku - Tampilan komentar - Tampilam posting - Tampilan Detail posting - Tampilan Edit postinf - Tampilan edit komentat - Tampilan report posting - Tampilan report komentar ### No issuee
20 lines
545 B
TypeScript
20 lines
545 B
TypeScript
import { LayoutForum_Main } from "@/app_modules/forum";
|
|
import { User_getUserId } from "@/app_modules/fun_global/get_user_token";
|
|
import { user_getOneById } from "@/app_modules/home/fun/get/get_one_user_by_id";
|
|
import React from "react";
|
|
|
|
export default async function Layout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
const authorId = await User_getUserId();
|
|
const dataAuthor = await user_getOneById(authorId);
|
|
|
|
return (
|
|
<>
|
|
<LayoutForum_Main dataAuthor={dataAuthor as any}>{children}</LayoutForum_Main>
|
|
</>
|
|
);
|
|
}
|