// Generated, do not edit. sha256:9524042357ce22fcf244cdc26ee3cb73b68a915569fd002433a8ce0705465b4d import { esc } from './escape.js'; const ICONS = { info: 'ℹ️', success: '✓', error: '⚠️', neutral: '' }; export function alertHtml({ kind = 'neutral', title = '', body = '', icon, extra = '', className = '' }) { if (!(kind in ICONS)) throw new Error(`Unknown alert kind: ${kind}.`); const teken = icon === undefined ? ICONS[kind] : (icon || ''); const iconHtml = teken ? `${teken}` : ''; const titleHtml = title ? `
${esc(title)}
` : ''; const bodyHtml = body ? `
${esc(body)}
` : ''; return `
${iconHtml}` + `
${titleHtml}${bodyHtml}${extra}
`; }