import React from "react"; import { View, Text, TouchableOpacity } from "react-native"; import { AntDesign, Entypo, FontAwesome6, MaterialCommunityIcons, } from "@expo/vector-icons"; import { AntDesignIconNames, CommunityIconNames, EntypoIconNames, FontAwesomeIconNames, } from "./Icons"; interface CheckButtonProps { label: string; value: boolean; onChange: () => void; antIcon?: AntDesignIconNames; entypoIcon?: EntypoIconNames; fontAwesomeIcon?: FontAwesomeIconNames; communityIcon?: CommunityIconNames; } const CheckButton: React.FC = ({ label, value, onChange, antIcon, entypoIcon, fontAwesomeIcon, communityIcon, }) => { return ( {antIcon ? ( ) : null} {entypoIcon ? ( ) : null} {communityIcon ? ( ) : null} {fontAwesomeIcon ? ( ) : null} {label} ); }; export default CheckButton;