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

11 lines (10 loc) 397 B
import { useAppSelector } from '../app/hooks'; import { selectKioskConfig } from '../slices'; var Allergen = function (_a) { var allergen = _a.allergen, children = _a.children, size = _a.size; var config = useAppSelector(selectKioskConfig).allergen; if (!config) return null; return children({ config: config, allergen: allergen, size: size }); }; export default Allergen;