"use client";
import { jsx } from 'react/jsx-runtime';
import { toast as toast$1, Toaster } from '../../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.js';
import '../theme-provider/switcher.js';
import { useTheme } from '../theme-provider/theme.js';
import styles from './toast.module.css.js';

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

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