import type { Item } from '../types'; // NOTE: The "text" scrape button (data-action="scrape") was removed from the // template. The backend endpoint and scrapeItem() handler in main.ts are still // intact if we want to bring it back with proper styling later. export function createFeedItem(item: Item): string { const date = new Date(item.publish_date).toLocaleDateString(); return `