`;
}
export function articleListHtml(articleEvents: object[]) {
if (articleEvents.length === 0) return "";
let html = "";
for (const articleEvent of articleEvents) {
html += articleListItemHtml(articleEvent);
}
return `
Articles
${html}
`;
}
export function profilePageHtml(profileEvent: object, articleEvents: object[]) {
const profile = JSON.parse(profileEvent.content);
const name = profile.name || "Anonymous";
const title = `${name} on Nostr`;
const body = `