UNPKG

@open-tender/store

Version:

A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API

15 lines (14 loc) 728 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var hooks_1 = require("../app/hooks"); var slices_1 = require("../slices"); var SignUp = function (_a) { var handlers = _a.handlers, children = _a.children; var _b = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _b.signUp, modalContentConfig = _b.modalContent; var web_app_url = ((0, hooks_1.useAppSelector)(slices_1.selectKioskBrand) || {}).webAppUrl; var webAppUrl = web_app_url ? "".concat(web_app_url, "/signup") : null; if (!config) return null; return children({ config: config, modalContentConfig: modalContentConfig, handlers: handlers, webAppUrl: webAppUrl }); }; exports.default = SignUp;