import * as React from 'react'; import { Flex, Button, Card } from '@aws-amplify/ui-react'; import { InstructionDisplayText } from '../displayText'; import { DefaultHeader, DefaultPhotosensitiveWarning, DefaultInstructions, StartScreenComponents, } from '../shared/DefaultStartScreenComponents'; const START_CLASS_NAME = 'liveness-detector-start'; export interface StartLivenessProps { beginLivenessCheck: () => void; components?: StartScreenComponents; instructionDisplayText: Required; } export function StartLiveness(props: StartLivenessProps): JSX.Element { const { beginLivenessCheck, components: customComponents, instructionDisplayText, } = props; return ( {customComponents?.Header ? ( ) : ( )} {customComponents?.PhotosensitiveWarning ? ( ) : ( )} {customComponents?.Instructions ? ( ) : ( )} ); }