Files
mobile-darmasaba/components/eventItem.tsx
amel 633b18e92d upd: ui home
Deskripsi:
- update package
- ui diskusi home
- ui event home
- ui bar chart home
- ui pie chart home
- ui divisi home

No Issues
2025-02-26 12:32:01 +08:00

23 lines
759 B
TypeScript

import Styles from "@/constants/Styles"
import { Text, View } from "react-native"
type Props = {
category: 'purple' | 'orange'
title: string
user: string
jamAwal: string
jamAkhir: string
}
export default function EventItem({ category, title, user, jamAwal, jamAkhir }: Props) {
return (
<View style={[Styles.itemEvent, { backgroundColor: category == 'orange' ? '#FED6C5' : '#D8D8F1' }]}>
<View style={[Styles.dividerEvent, { backgroundColor: category == 'orange' ? '#FB804C' : '#535FCA' }]} />
<View>
<Text>{jamAwal} - {jamAkhir}</Text>
<Text style={[Styles.textDefaultSemiBold, Styles.mv05]}>{title}</Text>
<Text>Dibuat oleh : {user}</Text>
</View>
</View>
)
}