"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "Toaster", {
    enumerable: true,
    get: function() {
        return Toaster;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _reacthottoast = require("react-hot-toast");
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
const _lucidereact = require("lucide-react");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const Toaster = (props)=>{
    return(// @ts-ignore
    /*#__PURE__*/ (0, _jsxruntime.jsx)(_reacthottoast.Toaster, {
        toastOptions: {
            duration: 2500,
            success: {
                iconTheme: {
                    primary: "rgba(0, 181, 159, 1)",
                    secondary: "rgba(57, 52, 74, 1)"
                },
                style: {
                    fontSize: "14px",
                    color: "rgba(255, 255, 255, 0.98)"
                }
            },
            error: {
                iconTheme: {
                    primary: "rgba(255, 103, 194, 1)",
                    secondary: "rgba(57, 52, 74, 1)"
                },
                style: {
                    fontSize: "14px",
                    color: "rgba(255, 255, 255, 0.98)"
                }
            }
        },
        ...props,
        children: (t)=>// @ts-ignore
            /*#__PURE__*/ (0, _jsxruntime.jsx)(_reacthottoast.ToastBar, {
                toast: t,
                style: {
                    ...t.style,
                    background: "rgba(57, 52, 74, 1)",
                    color: "rgba(255, 255, 255, 0.98)",
                    // alignItems: "start",
                    borderRadius: "6px"
                },
                children: ({ icon, message })=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
                        children: [
                            icon,
                            message,
                            t.type !== "loading" && /*#__PURE__*/ (0, _jsxruntime.jsx)("button", {
                                onClick: ()=>_reacthottoast.toast.dismiss(t.id),
                                children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_lucidereact.X, {
                                    size: 18,
                                    color: "rgba(255, 255, 255, 0.2)"
                                })
                            })
                        ]
                    })
            })
    }));
};

//# sourceMappingURL=Toaster.js.map