import { gameRuntime } from '../state/runtime'; import { useGameStore } from '../state/store'; import { StoryProseLog } from './StoryProseLog'; import { StoryTree } from './StoryTree'; export function StoryView() { const tree = useGameStore((s) => s.story.tree); const log = useGameStore((s) => s.storyLog); const selectedId = useGameStore((s) => s.selectedStoryNodeId); const currentProse = useGameStore((s) => s.story.currentProse); const choicesLength = useGameStore((s) => s.story.choices.length); // Boot intro: show Continue button when there's prose, no choices, and no tree yet const isBootIntro = currentProse != null && choicesLength === 0 && tree.length === 0; if (isBootIntro) { return (
{currentProse}