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

26 lines (25 loc) 1.16 kB
import { useAppSelector } from '../app/hooks'; import { selectKioskConfig } from '../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 = useAppSelector(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 }); }; export default CheckoutContainer;