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) 862 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var hooks_1 = require("../app/hooks"); var slices_1 = require("../slices"); var ModalContent = function (_a) { var title = _a.title, subtitle = _a.subtitle, content = _a.content, submit = _a.submit, submitText = _a.submitText, cancel = _a.cancel, cancelText = _a.cancelText, style = _a.style, error = _a.error, children = _a.children; var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).modalContent; if (!config) return null; return children({ config: config, title: title, subtitle: subtitle, children: content, submit: submit, submitText: submitText, cancel: cancel, cancelText: cancelText, style: style, error: error }); }; exports.default = ModalContent;