import { ColorsStatus } from "@/constants/ColorsStatus"; import Styles from "@/constants/Styles"; import { View } from "react-native"; import Text from "../Text"; type Props = { dateStart: Date year: string data: { title: string timeStart: string timeEnd: string }[] }[] export default function ItemHistoryEvent({ data }: { data: Props }) { return ( <> { data.length > 0 ? ( data.map((item, index) => ( {String(item.dateStart)} {item.year} { item.data.map((item2, index2) => ( {item2.title} {item2.timeStart} | {item2.timeEnd} )) } )) ) : ( Tidak ada data ) } ) }