import Styles from "@/constants/Styles"; import { useTheme } from "@/providers/ThemeProvider"; import React from "react"; import { Pressable, View } from "react-native"; import Text from "../Text"; type Props = { title: string; subtitle: string; icon: React.ReactNode; onPress: () => void; }; export default function FiturGridItem({ title, subtitle, icon, onPress }: Props) { const { colors } = useTheme(); return ( [ Styles.wrapGridItem, { backgroundColor: colors.card, borderColor: colors.icon + '20', }, pressed && { opacity: 0.7 } ]} > {icon} {title} {subtitle} ); }