import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
import { toast as Jt, Toaster as Te } from '../../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.js';
import '../themeProvider/switcher.js';
import { useTheme } from '../themeProvider/theme.js';
import styles from './toast.module.css.js';

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

export { ToastContainer, toast };
//# sourceMappingURL=toast.js.map
