27 lines
573 B
TypeScript
27 lines
573 B
TypeScript
import { user_funGetOneUserId } from "@/app_modules/fun_global";
|
|
import { LayoutVote_DetailSemuaRiwayat } from "@/app_modules/vote";
|
|
import React from "react";
|
|
|
|
export default async function Layout({
|
|
children,
|
|
params,
|
|
}: {
|
|
children: React.ReactNode;
|
|
params: { id: string };
|
|
}) {
|
|
const votingId = params.id;
|
|
const userLoginId = await user_funGetOneUserId();
|
|
|
|
|
|
return (
|
|
<>
|
|
<LayoutVote_DetailSemuaRiwayat
|
|
votingId={votingId}
|
|
userLoginId={userLoginId}
|
|
>
|
|
{children}
|
|
</LayoutVote_DetailSemuaRiwayat>
|
|
</>
|
|
);
|
|
}
|