UNPKG

@open-tender/ui

Version:

A component library for use with the Open Tender web app

12 lines (11 loc) 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const react_1 = tslib_1.__importDefault(require("react")); const ModalContent_1 = tslib_1.__importDefault(require("./ModalContent")); const SignInOptions_1 = tslib_1.__importDefault(require("./SignInOptions")); const SignInOptionsModal = ({ config, modalContentConfig, handlers, signInType, scannerType, renderSignInQr, renderSignInPhone }) => { return signInType === 'PHONE' ? (renderSignInPhone(handlers.close)) : signInType === 'QR_CODE' ? (renderSignInQr(handlers.close)) : (react_1.default.createElement(ModalContent_1.default, { config: modalContentConfig, title: "Sign into your account", subtitle: "How would you like to sign in?", cancel: handlers.close }, react_1.default.createElement(SignInOptions_1.default, { config: config, handlers: handlers, signInType: signInType, scannerType: scannerType, renderSignInQr: renderSignInQr, renderSignInPhone: renderSignInPhone }))); }; exports.default = SignInOptionsModal;