import React, { FC } from "react"; import { Text, TouchableOpacity } from "react-native"; import { MaterialCommunityIcons } from "@expo/vector-icons"; type Props = { icon: keyof typeof MaterialCommunityIcons.glyphMap; backgroundColor: string; flex: number; onPressButton: () => void; children: string; }; export const UsefulBox: FC = (props) => { const { icon, backgroundColor, flex, onPressButton, children } = props; return ( {children} ); };