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) 410 B
import { useAppSelector } from '../app/hooks'; import { selectKioskConfig } from '../slices'; var ModalHeader = function (_a) { var title = _a.title, subtitle = _a.subtitle, children = _a.children; var config = useAppSelector(selectKioskConfig).modalHeader; if (!config) return null; return children({ config: config, title: title, subtitle: subtitle }); }; export default ModalHeader;