import type React from "react" import { View, StyleSheet } from "react-native" import { MaterialIcons, MaterialCommunityIcons, Ionicons, FontAwesome, FontAwesome5, Feather } from "@expo/vector-icons" // Tipos de ícones suportados type IconType = "material" | "material-community" | "ionicons" | "font-awesome" | "font-awesome5" | "feather" interface IconProps { type: IconType name: string size?: number color?: string style?: any } const Icon: React.FC = ({ type, name, size = 24, color = "#000", style }) => { const renderIcon = () => { switch (type) { case "material": return case "material-community": return case "ionicons": return case "font-awesome": return case "font-awesome5": return case "feather": return default: return } } return {renderIcon()} } const styles = StyleSheet.create({ container: { alignItems: "center", justifyContent: "center", }, }) export default Icon