Files
hipmi-mobile/screens/Voting/BoxDetailSection.tsx
Bagasbanuna02 ce79d7c240 Voting
Add:
- api-client/api-voting: kumpulan fetching api voting

Fix:
- UI create dan (tabs) status udah terintegrasi ke API

### No Isuue
2025-09-17 17:31:44 +08:00

42 lines
1.0 KiB
TypeScript

import {
BoxWithHeaderSection,
Spacing,
StackCustom,
TextCustom,
} from "@/components";
import { Voting_ComponentDetailDataSection } from "./ComponentDetailDataSection";
import { Ionicons } from "@expo/vector-icons";
export function Voting_BoxDetailSection({
headerAvatar,
data,
}: {
headerAvatar?: React.ReactNode;
data?: any;
}) {
return (
<>
<BoxWithHeaderSection>
{headerAvatar ? headerAvatar : <Spacing />}
<StackCustom>
<Voting_ComponentDetailDataSection data={data} />
<Spacing height={0} />
<StackCustom>
<TextCustom bold size="small">
Pilihan :
</TextCustom>
{data?.Voting_DaftarNamaVote?.map((item: any, i: number) => (
<StackCustom key={i}>
<TextCustom>
<Ionicons name="caret-forward" size={14} /> {item?.value}
</TextCustom>
</StackCustom>
))}
</StackCustom>
</StackCustom>
</BoxWithHeaderSection>
</>
);
}