import { html, raw } from "hono/html"; import { designSystem } from "../../styles/index"; import { interactiveScripts } from "../../scripts/index"; // eslint-disable-next-line @typescript-eslint/no-explicit-any export const layout = (title: string, content: any) => { return html` ${title} - Email to RSS Admin ${content} `; }; export function clampText(value: string, maxLen: number): string { const raw = `${value || ""}`; if (raw.length <= maxLen) { return raw.trim(); } if (maxLen <= 3) { return raw.slice(0, maxLen).trim(); } return `${raw.slice(0, maxLen - 3).trimEnd()}...`; }