26 lines
571 B
TypeScript
26 lines
571 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-primaryPurple">
|
|
{isResetting ? "Sending reset email..." : "Forgot Password?"}
|
|
</Text>
|
|
</TouchableOpacity>
|
|
);
|
|
};
|