import type { VaultEntry } from '../../types' import { Info } from '@phosphor-icons/react' import { countWords } from '../../utils/wikilinks' function formatDate(timestamp: number | null): string { if (!timestamp) return '\u2014' const d = new Date(timestamp * 1000) return d.toLocaleDateString('en-US', { year: 'numeric', month: 'short', day: 'numeric' }) } function formatFileSize(bytes: number): string { if (bytes < 1024) return `${bytes} B` const kb = bytes / 1024 if (kb < 1024) return `${kb.toFixed(1)} KB` const mb = kb / 1024 return `${mb.toFixed(1)} MB` } function InfoRow({ label, value }: { label: string; value: string }) { return (
{label} {value}
) } export function NoteInfoPanel({ entry, content }: { entry: VaultEntry; content: string | null }) { const wordCount = countWords(content ?? '') return (

Info

) }