@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) • 354 B
JavaScript
import { useAppSelector } from '../app/hooks';
import { selectKioskConfig } from '../slices';
var Card = function (_a) {
var children = _a.children, content = _a.content;
var config = useAppSelector(selectKioskConfig).card;
if (!config)
return null;
return children({ config: config, children: content });
};
export default Card;