- Upload image berita ke server wibu - Tampilan detail image di ambil dari server wibu ## No issue
21 lines
617 B
TypeScript
21 lines
617 B
TypeScript
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
|
|
import { investasi_funGetOneInvestasiById } from "@/app_modules/investasi/_fun";
|
|
import { Investasi_UiDetailMain } from "@/app_modules/investasi/_ui";
|
|
|
|
|
|
export default async function Page({ params }: { params: { id: string } }) {
|
|
const investasiId = params.id;
|
|
const userLoginId = await funGetUserIdByToken();
|
|
|
|
const dataInvestasi = await investasi_funGetOneInvestasiById({ investasiId });
|
|
|
|
return (
|
|
<>
|
|
<Investasi_UiDetailMain
|
|
dataInvestasi={dataInvestasi as any}
|
|
userLoginId={userLoginId}
|
|
/>
|
|
</>
|
|
);
|
|
}
|