// Home / Workspace Dashboard function ModuleHome({ onNavigate }) { const D = KS_DATA; const modBadge = (mod) => { const map = { word: { l:'W', c:'var(--mod-word)', t:'var(--mod-word-tint)' }, sheet: { l:'S', c:'var(--mod-sheets)', t:'var(--mod-sheets-tint)' }, sheets: { l:'S', c:'var(--mod-sheets)', t:'var(--mod-sheets-tint)' }, slides: { l:'P', c:'var(--mod-slides)', t:'var(--mod-slides-tint)' }, pdf: { l:'F', c:'var(--mod-pdf)', t:'var(--mod-pdf-tint)' }, notes: { l:'N', c:'var(--mod-notes)', t:'var(--mod-notes-tint)' }, board: { l:'B', c:'var(--mod-board)', t:'var(--mod-board-tint)' }, db: { l:'D', c:'var(--mod-db)', t:'var(--mod-db-tint)' }, }; return map[mod]; }; const quickCreate = [ { id: 'word', label: 'Document', kbd:'⌘⇧D', c: 'var(--mod-word)', t:'var(--mod-word-tint)', letter:'W' }, { id: 'sheets', label: 'Spreadsheet',kbd:'⌘⇧S', c: 'var(--mod-sheets)', t:'var(--mod-sheets-tint)', letter:'S' }, { id: 'slides', label: 'Presentation',kbd:'⌘⇧P',c: 'var(--mod-slides)', t:'var(--mod-slides-tint)', letter:'P' }, { id: 'pdf', label: 'PDF', kbd:'⌘⇧F', c: 'var(--mod-pdf)', t:'var(--mod-pdf-tint)', letter:'F' }, { id: 'notes', label: 'Note', kbd:'⌘⇧N', c: 'var(--mod-notes)', t:'var(--mod-notes-tint)', letter:'N' }, { id: 'board', label: 'Whiteboard', kbd:'⌘⇧B', c: 'var(--mod-board)', t:'var(--mod-board-tint)', letter:'B' }, { id: 'db', label: 'Database', kbd:'⌘⇧R', c: 'var(--mod-db)', t:'var(--mod-db-tint)', letter:'D' }, ]; const kindLabel = (k) => ({word:'Word',sheet:'Spreadsheet',slides:'Presentation',pdf:'PDF',notes:'Notes',board:'Whiteboard',db:'Database'}[k] || k); return (
| Name | Owner | Shared with | Opened | |
|---|---|---|---|---|
|
{b.l}
{doc.title}
{kindLabel(doc.kind)}
|
{doc.owner} |
{doc.shared > 0 ? (
{Array.from({length: Math.min(3, doc.shared)}).map((_,i) => (
+{doc.shared}
{'ABCD'[i]}
))}
|
{doc.opened} |