Files
klz-cables.com/.pnpm-store/v10/files/0b/4b7d90749056b17d32385fe9c173b4961cfe179ef52d6b097a380451ee908b17b9aa0779a64fcca58ec787e74777a9f19e07a381add118d835d6e2619866de
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

56 lines
1.4 KiB
Plaintext

'use client';
import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
import { Toaster } from 'sonner';
import { Error } from './icons/Error.js';
import { Info } from './icons/Info.js';
import { Success } from './icons/Success.js';
import { Warning } from './icons/Warning.js';
export const ToastContainer = ({
config
}) => {
const {
admin: {
toast: {
duration,
expand,
limit,
position
} = {}
} = {}
} = config;
return /*#__PURE__*/_jsx(Toaster, {
className: "payload-toast-container",
closeButton: true,
// @ts-expect-error
dir: "undefined",
duration: duration ?? 4000,
expand: expand ?? false,
gap: 8,
icons: {
error: /*#__PURE__*/_jsx(Error, {}),
info: /*#__PURE__*/_jsx(Info, {}),
success: /*#__PURE__*/_jsx(Success, {}),
warning: /*#__PURE__*/_jsx(Warning, {})
},
offset: "calc(var(--gutter-h) / 2)",
position: position ?? 'bottom-right',
toastOptions: {
classNames: {
closeButton: 'payload-toast-close-button',
content: 'toast-content',
error: 'toast-error',
icon: 'toast-icon',
info: 'toast-info',
success: 'toast-success',
title: 'toast-title',
toast: 'payload-toast-item',
warning: 'toast-warning'
},
unstyled: true
},
visibleToasts: limit ?? 5
});
};
//# sourceMappingURL=index.js.map