import { ThemedText } from "@/components/ThemedText"; import { ActivityIndicator, StyleSheet, TouchableOpacity, ViewStyle } from "react-native"; interface ButtonProps { isLoading?: boolean; handleLogin?: () => void; text: string; containerStyle?: ViewStyle; } const Button = ({ isLoading, handleLogin, text, containerStyle }: ButtonProps) => { return {isLoading ? ( ) : ( {text} )} } const styles = StyleSheet.create({ loginButton: { width: '100%', backgroundColor: '#E2793F', borderRadius: 28, padding: 16, alignItems: 'center', marginBottom: 24, }, }) export default Button