/* eslint-disable @typescript-eslint/no-unused-vars */ import { BackButton, BaseBox, ButtonCustom, CenterCustom, DotButton, DrawerCustom, DummyLandscapeImage, Grid, MenuDrawerDynamicGrid, Spacing, StackCustom, TextCustom, ViewWrapper, } from "@/components"; import { IconEdit } from "@/components/_Icon"; import { IMenuDrawerItem } from "@/components/_Interface/types"; import { AccentColor, MainColor } from "@/constants/color-palet"; import { ICON_SIZE_MEDIUM } from "@/constants/constans-value"; import Investment_ButtonStatusSection from "@/screens/Invesment/ButtonStatusSection"; import { AntDesign, FontAwesome6, Ionicons, MaterialIcons, } from "@expo/vector-icons"; import { router, Stack, useLocalSearchParams } from "expo-router"; import _ from "lodash"; import { useState } from "react"; import { View } from "react-native"; export default function InvestmentDetailStatus() { const { id, status } = useLocalSearchParams(); const [openDrawerDraft, setOpenDrawerDraft] = useState(false); const handlePressDraft = (item: IMenuDrawerItem) => { console.log("PATH >> ", item.path); router.navigate(item.path as any); setOpenDrawerDraft(false); }; return ( <> , headerRight: () => status === "draft" ? ( setOpenDrawerDraft(true)} /> ) : null, // : status === "publish" ? ( // setOpenDrawerPublish(true)} /> // ) : null, }} /> Title of Investment {listData.map((item, index) => ( {item.label} {item.value} ))} Prospektus Dokumen setOpenDrawerDraft(false)} height={"auto"} > , label: "Edit Data", path: `/investment/${id}/edit`, }, { icon: ( ), label: "Edit Prospektus", path: `/investment/${id}/edit-prospectus`, }, { icon: ( ), label: "Update Dokumen", path: `/investment/${id}/recap-of-document`, }, ]} columns={4} onPressItem={handlePressDraft as any} /> ); } const listData = [ { label: "Target Dana", value: "Rp. 7.500.000", }, { label: "Harga Per Lembar", value: "Rp. 2.400.", }, { label: "Return Of Investment (ROI)", value: "3 %", }, { label: "Total Lembar", value: "1.200", }, { label: "Jadwal Pembagian", value: "Rp. 2.880.000", }, { label: "Pembagian Deviden", value: "Selamanya", }, { label: "Pencarian Investor", value: "30 Hari", }, ];