UNPKG

stackpress

Version:

Incept is a content management framework.

21 lines (20 loc) 775 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = NotifyProvider; const jsx_runtime_1 = require("react/jsx-runtime"); const NotifyContext_js_1 = __importDefault(require("./NotifyContext.js")); function NotifyProvider(props) { const { children, config = { position: 'bottom-center', autoClose: 5000, hideProgressBar: false, closeOnClick: true, pauseOnHover: true, draggable: true, theme: 'dark', } } = props; return ((0, jsx_runtime_1.jsx)(NotifyContext_js_1.default.Provider, { value: { config }, children: children })); }