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

14 lines (13 loc) 522 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var hooks_1 = require("../app/hooks"); var slices_1 = require("../slices"); var Notifications = function (_a) { var children = _a.children; var config = (0, hooks_1.useAppSelector)(slices_1.selectKioskConfig).notifications; var messages = (0, hooks_1.useAppSelector)(slices_1.selectNotifications); if (!config) return null; return children({ config: config, messages: messages }); }; exports.default = Notifications;