import * as plugins from './infohtml.plugins.js'; import { type IHtmlInfoOptions } from './index.js'; export const simpleInfo = async ( smartntmlInstanceArg: plugins.smartntml.Smartntml, optionsArg: IHtmlInfoOptions ) => { const html = plugins.smartntml.deesElement.html; const htmlTemplate = await plugins.smartntml.deesElement.html` ${optionsArg.title}
${(() => { const returnArray: plugins.smartntml.deesElement.TemplateResult[] = []; if (optionsArg.heading) { returnArray.push(html`

${optionsArg.heading}

${optionsArg.text}
`); } else { returnArray.push(html`
${optionsArg.text}
`); } if (optionsArg.sentryDsn && optionsArg.sentryMessage) { returnArray.push( html`
We recorded this event. Should you continue to see this page against your expectations, feel free to mail us at hello@lossless.com
` ); } if (optionsArg.redirectTo) { returnArray.push( html`
We will redirect you to ${optionsArg.redirectTo} in a few seconds.
` ); } return returnArray; })()}
`; return smartntmlInstanceArg.renderTemplateResult(htmlTemplate); };