import { layout, escHtml } from './layout.ts'; export function uploadPage(opts: { error?: string } = {}): string { const errorHtml = opts.error ? `

${opts.error}

` : ''; return layout('Upload', `

Upload a file

${errorHtml}
`, { authed: true }); } export function uploadResultPage(shareUrl: string, filename: string): string { const safeUrl = escHtml(shareUrl); const safeName = escHtml(filename); return layout('File uploaded', `

File uploaded

${safeName} is ready to share.

Upload another · My files

`, { authed: true }); }