import React from 'react';
import { Flex, View, ComponentClassNames, Text } from '@aws-amplify/ui-react';
import { GoodFitIllustration, TooFarIllustration, StartScreenFigure } from './';
import { LivenessIconWithPopover } from './LivenessIconWithPopover';
import { LivenessClassNames } from '../types/classNames';
export interface StartScreenComponents {
Header?: React.ComponentType;
PhotosensitiveWarning?: React.ComponentType;
Instructions?: React.ComponentType;
}
interface DefaultHeaderProps {
headingText: string;
bodyText: string;
}
export const DefaultHeader = ({
headingText,
bodyText,
}: DefaultHeaderProps): JSX.Element => {
return (
{headingText}
{bodyText}
);
};
interface DefaultPhotosensitiveWarningProps {
headingText: string;
bodyText: string;
infoText: string;
}
export const DefaultPhotosensitiveWarning = ({
headingText,
bodyText,
infoText,
}: DefaultPhotosensitiveWarningProps): JSX.Element => {
return (
{headingText}
{bodyText}
{infoText}
);
};
interface DefaultInstructionsProps {
headingText: string;
goodFitCaptionText: string;
goodFitAltText: string;
tooFarCaptionText: string;
tooFarAltText: string;
steps: string[];
}
export const DefaultInstructions = ({
headingText,
goodFitCaptionText,
goodFitAltText,
tooFarCaptionText,
tooFarAltText,
steps,
}: DefaultInstructionsProps): JSX.Element => {
return (
{headingText}
{steps.map((item, index) => {
return (
{index + 1}.
{item}
);
})}
);
};