import { BoxWithHeaderSection, AvatarUsernameAndOtherComponent, Spacing, StackCustom, TextCustom, BadgeCustom, Grid, CircleContainer, } from "@/components"; import dayjs from "dayjs"; import { Href } from "expo-router"; export default function Voting_BoxPublishSection({ href, id, bottomComponent, data, }: { href?: Href; id?: string; bottomComponent?: React.ReactNode; data?: any; }) { return ( <> {data?.title || "-"} {dayjs(data?.awalVote).format("DD/MM/YYYY")} -{" "} {dayjs(data?.akhirVote).format("DD/MM/YYYY")} {/* {Array.from({ length: 4 }).map((_, i) => ( Pilihan {i + 1} ))} */} {bottomComponent} ); }