Deskripsi: - update package - ui diskusi home - ui event home - ui bar chart home - ui pie chart home - ui divisi home No Issues
22 lines
605 B
TypeScript
22 lines
605 B
TypeScript
import Styles from "@/constants/Styles";
|
|
import React from "react";
|
|
import { Text, TouchableWithoutFeedback, View } from "react-native";
|
|
|
|
type Props = {
|
|
onPress?: () => void;
|
|
icon: React.ReactNode;
|
|
text: string;
|
|
};
|
|
|
|
export function ButtonFiturMenu({ onPress, icon, text }: Props) {
|
|
return (
|
|
<TouchableWithoutFeedback onPress={onPress}>
|
|
<View style={{ alignItems: 'center' }}>
|
|
<View style={[Styles.btnFiturMenu]}>
|
|
{icon}
|
|
</View>
|
|
<Text style={[Styles.mt05]}>{text}</Text>
|
|
</View>
|
|
</TouchableWithoutFeedback>
|
|
)
|
|
} |