import { html } from "/js/lib/lit-html.js"; import { displayRelativeTime } from "/js/utils.js"; import { linkToProfile } from "/js/navigation.js"; import { verificationBadgeTemplate } from "/js/templates/verificationBadge.template.js"; import { automatedAccountBadgeTemplate } from "/js/templates/automatedAccountBadge.template.js"; import { getDisplayName } from "/js/dataHelpers.js"; export function postHeaderTextTemplate({ author, timestamp, includeTime = true, includeHandle = true, enableProfileLink = true, }) { return html`
${enableProfileLink ? html`${getDisplayName(author)}` : html`${getDisplayName(author)}`}${verificationBadgeTemplate({ profile: author, })}${automatedAccountBadgeTemplate({ profile: author })} ${includeHandle ? enableProfileLink ? html`@${author.handle}` : html`@${author.handle}` : ""} ${includeTime ? html`ยท${displayRelativeTime(timestamp)}` : ""}
`; }