import { ButtonCustom, Spacing, TextCustom } from "@/components"; import ViewWrapper from "@/components/_ShareComponent/ViewWrapper"; import { AccentColor, MainColor } from "@/constants/color-palet"; import Event_BoxPublishSection from "@/screens/Event/BoxPublishSection"; import { useState } from "react"; import { View } from "react-native"; export default function EventHistory() { const [activeCategory, setActiveCategory] = useState("all"); const handlePress = (item: any) => { setActiveCategory(item); // tambahkan logika lain seperti filter dsb. }; const headerComponent = ( handlePress("all")} > Semua Riwayat handlePress("main")} > Riwayat Saya ); return ( {Array.from({ length: 10 }).map((_, index) => ( {new Date().toLocaleDateString()} } href={`/event/${index}/history`} /> ))} ); }