@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
21 lines (20 loc) • 764 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var hooks_1 = require("../app/hooks");
var slices_1 = require("../slices");
var Ingredients = function (_a) {
var title = _a.title, subtitle = _a.subtitle, ingredients = _a.ingredients, close = _a.close, children = _a.children;
var _b = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig), config = _b.ingredients, modalContentConfig = _b.modalContent;
var handlers = { close: close };
if (!config)
return null;
return children({
config: config,
modalContentConfig: modalContentConfig,
handlers: handlers,
title: title,
subtitle: subtitle,
ingredients: ingredients
});
};
exports.default = Ingredients;