Deskripsi: - delete project yg telah dibatalkan - akses fitur by user role - tampilan text yg panjang No Issues
22 lines
721 B
TypeScript
22 lines
721 B
TypeScript
import Styles from "@/constants/Styles"
|
|
import { Pressable, Text, View } from "react-native"
|
|
|
|
type Props = {
|
|
onPress: () => void
|
|
icon: React.ReactNode
|
|
title: string
|
|
column?: 'many' | 'three'
|
|
color?: string
|
|
disabled?: boolean
|
|
}
|
|
|
|
export default function MenuItemRow({ onPress, icon, title, column, color, disabled }: Props) {
|
|
return (
|
|
<Pressable onPress={() => { onPress() }} style={[column == 'many' ? Styles.btnMenuRowMany : Styles.btnMenuRow, disabled && { opacity: 0.5 }]}>
|
|
<View style={{ alignItems: 'center' }}>
|
|
{icon}
|
|
<Text style={[Styles.mt05, { textAlign: 'center' }, color && { color: color }]}>{title}</Text>
|
|
</View>
|
|
</Pressable>
|
|
)
|
|
} |