import { AvatarUsernameAndOtherComponent, BackButton, DotButton, DrawerCustom, MenuDrawerDynamicGrid, Spacing, ViewWrapper, } from "@/components"; import { IconContribution } from "@/components/_Icon"; import { IMenuDrawerItem } from "@/components/_Interface/types"; import { Voting_BoxDetailContributionSection } from "@/screens/Voting/BoxDetailContribution"; import Voting_BoxDetailHasilVotingSection from "@/screens/Voting/BoxDetailHasilVotingSection"; import { router, Stack, useLocalSearchParams } from "expo-router"; import { useState } from "react"; export default function VotingDetailContribution() { const { id } = useLocalSearchParams(); const [openDrawerPublish, setOpenDrawerPublish] = useState(false); const handlePressPublish = (item: IMenuDrawerItem) => { router.navigate(item.path as any); setOpenDrawerPublish(false); }; return ( <> , headerRight: () => ( setOpenDrawerPublish(true)} /> ), }} /> } /> {/* ========= Publish Drawer ========= */} setOpenDrawerPublish(false)} height={"auto"} > , label: "Daftar Kontributor", path: `/voting/${id}/list-of-contributor`, }, ]} onPressItem={handlePressPublish as any} /> ); }