import Toastify from "toastify-js"; const ICONS = { info: '', alert: '', check: '' }; export const createToastHtml = (text, iconName = 'info') => { const innerHtml = ICONS[iconName] || ICONS.info; const size = 26; // Powiększona ikona const svg = `${innerHtml}`; return `
${svg} ${text}
`; }; export const showToast = (text, iconName = 'info', options = {}) => { Toastify({ text: createToastHtml(text, iconName), escapeMarkup: false, duration: 3000, gravity: "top", position: "center", stopOnFocus: true, ...options }).showToast(); };