import { AlertCustom, ButtonCustom, DrawerCustom, Spacing, TextAreaCustom, ViewWrapper, } from "@/components"; import { MainColor } from "@/constants/color-palet"; import Forum_CommentarBoxSection from "@/screens/Forum/CommentarBoxSection"; import Forum_BoxDetailSection from "@/screens/Forum/DiscussionBoxSection"; import { listDummyCommentarForum } from "@/screens/Forum/list-data-dummy"; import Forum_MenuDrawerBerandaSection from "@/screens/Forum/MenuDrawerSection.tsx/MenuBeranda"; import Forum_MenuDrawerCommentar from "@/screens/Forum/MenuDrawerSection.tsx/MenuCommentar"; import { router, useLocalSearchParams } from "expo-router"; import { useState } from "react"; export default function ForumDetail() { const { id } = useLocalSearchParams(); console.log(id); const [openDrawer, setOpenDrawer] = useState(false); const [status, setStatus] = useState(""); const [alertStatus, setAlertStatus] = useState(false); const [deleteAlert, setDeleteAlert] = useState(false); const [text, setText] = useState(""); // Comentar const [openDrawerCommentar, setOpenDrawerCommentar] = useState(false); const [alertDeleteCommentar, setAlertDeleteCommentar] = useState(false); const dataDummy = { name: "Bagas", status: "Open", date: "14/07/2025", deskripsi: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae inventore iure pariatur, libero omnis excepturi. Ullam ad officiis deleniti quos esse odit nesciunt, ipsam adipisci cumque aliquam corporis culpa fugit?", jumlahBalas: 2, }; return ( <> {/* */} { console.log("Posting", text); router.back(); }} > Balas {listDummyCommentarForum.map((e, i) => ( ))} setOpenDrawer(false)} > { setOpenDrawer(false); }} setShowDeleteAlert={setDeleteAlert} setShowAlertStatus={setAlertStatus} /> {/* Alert Status */} { setOpenDrawer(false); setAlertStatus(false); console.log("Batal"); }} onRightPress={() => { setOpenDrawer(false); setAlertStatus(false); console.log("Ubah status forum"); }} textLeft="Batal" textRight="Ubah" colorRight={MainColor.green} /> {/* Alert Delete */} { setOpenDrawer(false); setDeleteAlert(false); console.log("Batal"); }} onRightPress={() => { setOpenDrawer(false); setDeleteAlert(false); console.log("Hapus forum"); }} textLeft="Batal" textRight="Hapus" colorRight={MainColor.red} /> {/* Commentar */} setOpenDrawerCommentar(false)} > { setOpenDrawerCommentar(false); }} setShowDeleteAlert={setAlertDeleteCommentar} /> {/* Alert Delete Commentar */} { setOpenDrawerCommentar(false); setAlertDeleteCommentar(false); console.log("Batal"); }} onRightPress={() => { setOpenDrawerCommentar(false); setAlertDeleteCommentar(false); console.log("Hapus commentar"); }} textLeft="Batal" textRight="Hapus" colorRight={MainColor.red} /> ); }