@shopgate/pwa-common
Version:
Common library for the Shopgate Connect PWA.
15 lines (14 loc) • 366 B
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import ToastContext from "../../providers/toast/context";
/**
* The Toaster component.
* @returns {JSX}
*/
import { jsx as _jsx } from "react/jsx-runtime";
const Toaster = ({
render
}) => /*#__PURE__*/_jsx(ToastContext.Consumer, {
children: context => render(context)
});
export default Toaster;