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