Desc: - Perubahan pengambilan data dari API ke Function use server No issue
13 lines
441 B
TypeScript
13 lines
441 B
TypeScript
import { funGetUserProfile } from "@/app_modules/fun/get_user_profile";
|
|
import { EditProfileLayout } from "@/app_modules/katalog/profile";
|
|
|
|
export default async function Layout({ children, params }: { children: any, params: {id: string} }) {
|
|
const data = await funGetUserProfile(params.id)
|
|
const profileId = data?.Profile?.id
|
|
return (
|
|
<>
|
|
<EditProfileLayout profileId={profileId}>{children}</EditProfileLayout>
|
|
</>
|
|
);
|
|
}
|