import { BackButton, BaseBox, DrawerCustom, Grid, MenuDrawerDynamicGrid, TextCustom, ViewWrapper } from "@/components"; import { IconPlus } from "@/components/_Icon"; import dayjs from "dayjs"; import { router, Stack, useLocalSearchParams } from "expo-router"; import { useState } from "react"; export default function DonationRecapOfNews() { const { id } = useLocalSearchParams(); const [openDrawer, setOpenDrawer] = useState(false); return ( <> , }} /> {Array.from({ length: 15 }).map((_, index) => ( Lorem ipsum dolor, sit amet consectetur adipisicing elit. {dayjs().format("DD MMM YYYY")} ))} setOpenDrawer(false)} height={"auto"} > , label: "Tambah Berita", path: `/donation/${id}/(news)/add-news`, }, ]} onPressItem={(item) => { console.log("PATH ", item.path); router.navigate(item.path as any); setOpenDrawer(false); }} /> ); }