Files
beaver-plugin-obsidian/src/state.svelte.ts
T

11 lines
417 B
TypeScript

// What a panel leaf remembers: the conversation on screen, whether it follows
// the active note, and which note that is. Reactive so the view and the
// Svelte tree share one truth.
export class PanelState {
selected = $state<string | null>(null);
follow = $state(true);
sourcePath = $state("");
// The selected conversation is the open note's own: show activity, not a copy.
companion = $state(false);
}