project setup
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { View, Text, TouchableOpacity } from "react-native";
|
||||
|
||||
interface AuthFooterProps {
|
||||
question: string;
|
||||
actionText: string;
|
||||
onPress: () => void;
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
||||
export const AuthFooter = ({
|
||||
question,
|
||||
actionText,
|
||||
onPress,
|
||||
disabled,
|
||||
}: AuthFooterProps) => {
|
||||
return (
|
||||
<View className="flex-row items-center justify-center mt-6">
|
||||
<Text className="text-white">{question}</Text>
|
||||
<TouchableOpacity onPress={onPress} disabled={disabled}>
|
||||
<Text className="text-white font-bold ml-2">{actionText}</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user