import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
import { investasi_funGetOneInvestasiById } from "@/app_modules/investasi/_fun";
import { Investasi_UiDetailPortofolio } from "@/app_modules/investasi/_ui";

export default async function Page({ params }: { params: { id: string } }) {
  const investasiId = params.id;
  const userLoginId = await funGetUserIdByToken();

  const dataPortofolio = await investasi_funGetOneInvestasiById({
    investasiId,
  });

  return (
    <>
      <Investasi_UiDetailPortofolio
        dataInvestasi={dataPortofolio as any}
        userLoginId={userLoginId}
      />
    </>
  );
}
