( activeNote: NoteMeta | null, vaultSettings: ReturnType<typeof useStore.getState>["vaultSettings"], )
| 152 | } |
| 153 | |
| 154 | function defaultNewNoteTarget( |
| 155 | activeNote: NoteMeta | null, |
| 156 | vaultSettings: ReturnType<typeof useStore.getState>["vaultSettings"], |
| 157 | ): { folder: NoteFolder; subpath: string } { |
| 158 | if (!activeNote) return { folder: "inbox", subpath: "" }; |
| 159 | return { |
| 160 | folder: activeNote.folder, |
| 161 | subpath: noteFolderSubpath(activeNote, vaultSettings), |
| 162 | }; |
| 163 | } |
| 164 | |
| 165 | function remoteWorkspaceLabel(baseUrl: string | null): string { |
| 166 | if (!baseUrl) return "Remote vault"; |
no test coverage detected