@open-tender/ui
Version:
A component library for use with the Open Tender web app
9 lines (8 loc) • 798 B
JavaScript
import React from 'react';
import ModalContent from './ModalContent';
import SignInOptions from './SignInOptions';
const SignInOptionsModal = ({ config, modalContentConfig, handlers, signInType, scannerType, renderSignInQr, renderSignInPhone }) => {
return signInType === 'PHONE' ? (renderSignInPhone(handlers.close)) : signInType === 'QR_CODE' ? (renderSignInQr(handlers.close)) : (React.createElement(ModalContent, { config: modalContentConfig, title: "Sign into your account", subtitle: "How would you like to sign in?", cancel: handlers.close },
React.createElement(SignInOptions, { config: config, handlers: handlers, signInType: signInType, scannerType: scannerType, renderSignInQr: renderSignInQr, renderSignInPhone: renderSignInPhone })));
};
export default SignInOptionsModal;