export const MAX_DRAFT_IMAGES = 10; export function draftImageApiUrl(draftId: string, imagePath: string): string { const base = imagePath.split("/").pop() ?? imagePath; return `/api/drafts/${draftId}/image?p=${encodeURIComponent(base)}`; }