Invesment

Add:
- app/(application)/(user)/investment/[id]/(document)/

## No Issue
This commit is contained in:
2025-07-31 16:38:28 +08:00
parent 2931f6ba55
commit cc35bc6907
11 changed files with 62 additions and 57 deletions

View File

@@ -1,35 +1,38 @@
import { Spacing, StackCustom } from "@/components";
import { listDataNotPublishInvesment, listDataPublishInvesment } from "@/lib/dummy-data/investment/dummy-data-not-publish";
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,
bottomSection,
buttonSection,
}: {
status: string;
bottomSection: React.ReactNode;
buttonSection: React.ReactNode
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} />
{buttonSection}
</StackCustom>
<Spacing />
</>
);
}
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} />
{buttonSection}
</StackCustom>
<Spacing />
</>
);
}