";
// Senders style HTML mail for a white page. On the dark theme that means
// dark text on a dark background, so real HTML mail gets its own light
// surface; plain text keeps following the UI theme.
const bodyClass = rawHtml ? " prose-mail--html" : "";
const btn =
"text-xs px-2.5 py-1 rounded border border-paper-line text-ink-muted hover:border-accent hover:text-accent";
const chips = (msgTags || []).filter((t) => t !== "archive");
return (
{t("attachments")}
{attachments.map((a) => {
const size = a.bytes ? " (" + fmtBytes(a.bytes) + ")" : "";
// Outbound copies keep the name and size but not the bytes, so
// there is deliberately nothing to link to.
if (a.stored === false || !a.download_url) {
return (
{(a.filename || t("attachment")) + size} · {t("not_stored")}
);
}
return (
{(a.filename || t("attachment")) + size}
);
})}