'use strict';

var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
var index = require('../../node_modules/.pnpm/sonner@1.5.0_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/sonner/dist/index.cjs');
require('../theme-provider/switcher.cjs');
var theme = require('../theme-provider/theme.cjs');
var toast_module = require('./toast.module.css.cjs');

const ToastContainer = (props) => {
    const { resolvedTheme } = theme.useTheme();
    return (jsxRuntime.jsxRuntimeExports.jsx(index.Toaster, { theme: resolvedTheme, className: toast_module.default["raystack-toast"], ...props }));
};
const toast = Object.assign((message, options) => {
    index.toast(jsxRuntime.jsxRuntimeExports.jsx("div", { className: toast_module.default["toast-wrapper"], children: message }), options);
}, index.toast);
toast.displayName = "toast";
ToastContainer.displayName = "ToastContainer";

exports.ToastContainer = ToastContainer;
exports.toast = toast;
//# sourceMappingURL=toast.cjs.map
