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`
${(() => {
const returnArray: plugins.smartntml.deesElement.TemplateResult[] = [];
if (optionsArg.heading) {
returnArray.push(html`
${optionsArg.heading}
${optionsArg.text}
`);
} else {
returnArray.push(html`
${optionsArg.text}
`);
}
if (optionsArg.redirectTo) {
returnArray.push(
html`
We will redirect you to ${optionsArg.redirectTo} in a few seconds.
`
);
}
return returnArray;
})()}