//import Packages import { ActivityIndicator, Text, TouchableHighlight } from 'react-native'; import React from 'react'; import AntDesign from 'react-native-vector-icons/AntDesign'; import Entypo from 'react-native-vector-icons/Entypo'; import EvilIcons from 'react-native-vector-icons/EvilIcons'; import Feather from 'react-native-vector-icons/Feather'; import FontAwesome from 'react-native-vector-icons/FontAwesome'; import FontAwesome5 from 'react-native-vector-icons/FontAwesome5'; import FontAwesome5Pro from 'react-native-vector-icons/FontAwesome5Pro'; import Fontisto from 'react-native-vector-icons/Fontisto'; import Foundation from 'react-native-vector-icons/Foundation'; import Ionicons from 'react-native-vector-icons/Ionicons'; import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons'; import MaterialIcons from 'react-native-vector-icons/MaterialIcons'; import Octicons from 'react-native-vector-icons/Octicons'; import type Props from './Props'; import FontRatio from '../global_functions/font_ratio/FontRatio'; import styles from './styles'; const Buttons = (props: Props) => { return ( {props.isLoading === true ? ( ) : ( <> {props.type === 'vector Icon' ? ( <> {props.fontFamily === 'AntDesign' ? ( ) : props.fontFamily === 'Entypo' ? ( ) : props.fontFamily === 'EvilIcons' ? ( ) : props.fontFamily === 'Feather' ? ( ) : props.fontFamily === 'FontAwesome' ? ( ) : props.fontFamily === 'FontAwesome5' ? ( ) : props.fontFamily === 'FontAwesome5Pro' ? ( ) : props.fontFamily === 'Fontisto' ? ( ) : props.fontFamily === 'Foundation' ? ( ) : props.fontFamily === 'Ionicons' ? ( ) : props.fontFamily === 'MaterialCommunityIcons' ? ( ) : props.fontFamily === 'MaterialIcons' ? ( ) : props.fontFamily === 'Octicons' ? ( ) : ( )} ) : props.type === 'Text' ? ( {props.title} ) : ( props.type === 'SVG' && props.children )} )} ); }; export default Buttons;