import React from 'react'; import { Flex, View, FlexProps } from '@aws-amplify/ui-react'; import { LivenessClassNames } from '../types/classNames'; interface StartScreenFigureProps extends FlexProps { caption: string; variation?: 'defaut' | 'error' | 'success'; } export const StartScreenFigure: React.FC = ({ children, caption, variation = 'default', ...rest }) => { return ( {variation === 'success' ? ( ) : null} {variation === 'error' ? ( ) : null} {children} {caption} ); };