refactor: extract useVaultLoader and useNoteActions hooks from App.tsx

This commit is contained in:
lucaronin
2026-02-17 12:10:21 +01:00
parent e805970c17
commit 47deb6f3b7
4 changed files with 445 additions and 477 deletions

View File

@@ -85,10 +85,6 @@ const schema = BlockNoteSchema.create({
},
})
// Wikilink utilities and splitFrontmatter extracted to ../utils/wikilinks.ts
// DiffView extracted to ./DiffView.tsx
/** Inner component that creates/manages BlockNote for a single tab */
function BlockNoteTab({ content, entries, onNavigateWikilink }: { content: string; entries: VaultEntry[]; onNavigateWikilink: (target: string) => void }) {
const [, body] = useMemo(() => splitFrontmatter(content), [content])