import {Image, Text, View} from 'react-native';
import React from 'react';
import LottieView from 'lottie-react-native';
import {getBranding} from '../../branding';
import { useMyStepsVerification } from '../../provider/verification.context';
const AnimationComponent = (props?: any) => {
const context = useMyStepsVerification()
return (
<>
{!props?.loading && !props?.verificationLoading && (
You will need to take a picture of your document and selfie
For the best picture result
Find an area for good lighting
)}
{props?.loading && (
Getting Ready...
)}
{props?.verificationLoading && (
{context.resultContent?.verification?.heading || "Please Wait! We are verifying your identity"}
)}
>
);
};
export default AnimationComponent;