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

16 lines (15 loc) 531 B
import { useAppSelector } from '../app/hooks'; import { selectKioskConfig } from '../slices'; var CheckoutFooter = function (_a) { var handlers = _a.handlers, backTitle = _a.backTitle, proceedTitle = _a.proceedTitle, children = _a.children; var config = useAppSelector(selectKioskConfig).checkoutFooter; if (!config) return null; return children({ config: config, handlers: handlers, backTitle: backTitle, proceedTitle: proceedTitle }); }; export default CheckoutFooter;