import { html, list, attribute, hydrate } from 'wirejs-dom/v2'; import { AuthenticatedContent } from 'wirejs-components'; import { mailer } from 'internal-api'; import { Main } from '../layouts/main.js'; function Email() { const send = async (subject: string, body: string) => { try { await mailer.sendTestMessage(undefined, subject, body); alert("Message sent!"); } catch { alert("Send failed."); } } const self = html`