Files
AthenaFE/components/auth/ForgotPasswordLink.tsx
T
2025-11-05 20:11:34 +01:00

26 lines
585 B
TypeScript

import { TouchableOpacity, Text } from "react-native";
interface ForgotPasswordLinkProps {
onPress: () => void;
isResetting: boolean;
disabled: boolean;
}
export const ForgotPasswordLink = ({
onPress,
isResetting,
disabled,
}: ForgotPasswordLinkProps) => {
return (
<TouchableOpacity
className="items-center mt-4"
onPress={onPress}
disabled={disabled || isResetting}
>
<Text className="text-primaryPurpleDark font-bold">
{isResetting ? "Sending reset email..." : "Forgot Password?"}
</Text>
</TouchableOpacity>
);
};