fix: remove unused getSectionColor function (TS build fix)

This commit is contained in:
lucaronin
2026-02-21 16:26:32 +01:00
parent b1e15dd5ea
commit 23daf47353

View File

@@ -78,11 +78,6 @@ export const Sidebar = memo(function Sidebar({ entries, selection, onSelect, onS
return map
}, [entries])
const getSectionColor = (entry: VaultEntry) => {
const typeEntry = typeEntryMap[entry.isA ?? '']
return getTypeColor(entry.isA ?? 'Note', typeEntry?.color)
}
const isActive = (sel: SidebarSelection): boolean => {
if (selection.kind !== sel.kind) return false
if (sel.kind === 'filter' && selection.kind === 'filter') return sel.filter === selection.filter