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>
  );
};
