Deskripsi: - ui list announcement - ui detail announcement - ui create announcement - ui edit announcement - ui hapus announcement No Issues
19 lines
527 B
TypeScript
19 lines
527 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={() => { onPress() }} style={[Styles.btnMenuRow]}>
|
|
<View style={{ alignItems: 'center' }}>
|
|
{icon}
|
|
<Text style={[Styles.mt05, {textAlign: 'center'}]}>{title}</Text>
|
|
</View>
|
|
</Pressable>
|
|
)
|
|
} |