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

24 lines (23 loc) 963 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var hooks_1 = require("../app/hooks"); var slices_1 = require("../slices"); var CheckoutContainer = function (_a) { var handlers = _a.handlers, title = _a.title, subtitle = _a.subtitle, headerContent = _a.headerContent, content = _a.content, backTitle = _a.backTitle, proceedTitle = _a.proceedTitle, renderHeader = _a.renderHeader, renderTotals = _a.renderTotals, children = _a.children; var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).checkout; if (!config) return null; return children({ config: config, handlers: handlers, title: title, subtitle: subtitle, headerContent: headerContent, content: content, backTitle: backTitle, proceedTitle: proceedTitle, renderHeader: renderHeader, renderTotals: renderTotals }); }; exports.default = CheckoutContainer;