@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
28 lines (27 loc) • 1.24 kB
JavaScript
"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, showFooter = _a.showFooter, showBottomText = _a.showBottomText, renderHeader = _a.renderHeader, renderTotals = _a.renderTotals, children = _a.children, showViewOrder = _a.showViewOrder, isScrollable = _a.isScrollable;
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,
showFooter: showFooter,
showBottomText: showBottomText,
showViewOrder: showViewOrder,
isScrollable: isScrollable,
renderHeader: renderHeader,
renderTotals: renderTotals
});
};
exports.default = CheckoutContainer;