Files
hipmi-mobile/screens/Invesment/DetailDataPublishSection.tsx
Bagasbanuna02 db0f4246b6 Invesment
Add:
- /investment/[id]/(my-holding)/

Fix:
- screens/Invesment/DetailDataPublishSection.tsx: tipe data prop ?

## No Issue
2025-08-01 12:01:40 +08:00

41 lines
1.1 KiB
TypeScript

import { Spacing, StackCustom } from "@/components";
import {
listDataNotPublishInvesment,
listDataPublishInvesment,
} from "@/lib/dummy-data/investment/dummy-data-not-publish";
import React from "react";
import Invesment_BoxDetailDataSection from "./BoxDetailDataSection";
import Invesment_BoxProgressSection from "./BoxProgressSection";
import Investment_ButtonStatusSection from "./ButtonStatusSection";
export default function Invesment_DetailDataPublishSection({
status,
bottomSection,
buttonSection,
}: {
status: string;
bottomSection?: React.ReactNode;
buttonSection?: React.ReactNode;
}) {
return (
<>
<StackCustom gap={"sm"}>
<Invesment_BoxProgressSection status={status as string} />
<Invesment_BoxDetailDataSection
data={
status === "publish"
? listDataPublishInvesment
: listDataNotPublishInvesment
}
bottomSection={bottomSection}
/>
<Investment_ButtonStatusSection
status={status as string}
buttonPublish={buttonSection}
/>
</StackCustom>
<Spacing />
</>
);
}