Files
mobile-darmasaba/components/menuItemRow.tsx
amel e8ec2278d3 upd: list anggota
Deskripsi:
- ui list anggota

- note : blm selesai

No Issues
2025-02-28 17:22:02 +08:00

19 lines
526 B
TypeScript

import Styles from "@/constants/Styles"
import { Pressable, Text, View } from "react-native"
type Props = {
onPress: () => void
icon: React.ReactNode
title: string
}
export default function MenuItemRow({ onPress, icon, title }: Props) {
return (
<Pressable onPressOut={() => { console.log('press'); onPress() }} style={[Styles.btnMenuRow]}>
<View style={{ alignItems: 'center' }}>
{icon}
<Text style={[Styles.mt05]}>{title}</Text>
</View>
</Pressable>
)
}