"use client";
'use strict';

var jsxRuntime = require('react/jsx-runtime');
var index = require('../../node_modules/.pnpm/sonner@2.0.7_react-dom@19.1.1_react@19.1.1__react@19.1.1/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.jsx(index.Toaster, { theme: resolvedTheme, className: toast_module.default['raystack-toast'], ...props }));
};
const toast = Object.assign((message, options) => {
    index.toast(jsxRuntime.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
